Allow disabling Thebe
See original GitHub issueDescription / Summary
I’m looking to optimize a jupyter-book. Looking at Google PageSpeed Insights, it looks like loading the thebe javascript from unpkg has a significant impact on page performance:
However, I don’t need thebe for my use case (I don’t have interactive cells). I want to disable thebe. AFAIK, that’s not possible in _config.yml
(I can enable an extra extension but not disable an existing one). I would like to be able to explicitly disable thebe so I don’t load a 400KB javascript file when I don’t need it for my book.
Value / benefit
It would allow my book and others that don’t rely on the thebe functionality to disable it, improving the performance of their books.
Implementation details
I believe in addition to extra_extensions
, there could another key in the sphinx config, disable_extensions
, for this use case.
Tasks to complete
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Thebe is now lazily loaded only when people explicitly click for it, so this should now be resolved! (ref: https://github.com/executablebooks/jupyter-book/pull/1634)
This issue is not only related to performance, but also to GDPR compliance. #797 addresses GDPR, #1625 tackles the conditional load.