question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow disabling Thebe

See original GitHub issue

Description / 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:

image

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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
choldgrafcommented, Feb 20, 2022

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)

1reaction
dr-brcommented, Feb 7, 2022

This issue is not only related to performance, but also to GDPR compliance. #797 addresses GDPR, #1625 tackles the conditional load.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What do the "Allow Disabling" Powerups Do In Temple Run?
A description of what the "Allow Disabling" powerups do in the Temple Run game and why you may or may not want to...
Read more >
Faro's Tomb - Horizon Forbidden West Wiki Guide - IGN
Head inside and use the console to disable the turbine. Once the fan has been stopped, continue forward and enter the next open...
Read more >
Horizon Forbidden West Faro's Tomb Walkthrough
Enter the Ruptured Pipe. There's a broken pipe that allows us to swim forward. Find an Entrance to Thebes. Keep swimming along the...
Read more >
Integrated Thebe Status & Launch Buttons · Issue #470 - GitHub
They are enabled/disabled by the following options: { mountStatusWidget: true, mountActivateWidget: true, ... } ...
Read more >
1246290 - Add a way to disable APZ on a per-page (or similar) basis
MozReview Request: Bug 1246290 - Add a pref to allow disabling APZ on documents which ... gfx/thebes/gfxPrefs.h:151 (Diff revision 3) > DECL_GFX_PREF(Live, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found