Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow child templates to override mathjax #1551

Merged
merged 1 commit into from
May 6, 2021
Merged

Allow child templates to override mathjax #1551

merged 1 commit into from
May 6, 2021

Conversation

yuvipanda
Copy link
Contributor

Right now, mathjax is loaded synchronously in , causing
render to block before moving forward. This is problematic,
especially since most notebooks don't actually have any
math to render.

This PR allows mathjax to be customized by child templates
that inherit from lab or classic. They can make it empty,
and load mathjax how they want - in the footer, only if
there is any math to be rendered, etc.

This should cause no difference in structure for the
default templates themselves.

Right now, mathjax is loaded synchronously in <head>, causing
render to block before moving forward. This is problematic,
especially since most notebooks don't actually have any
math to render.

This PR allows mathjax to be customized by child templates
that inherit from lab or classic. They can make it empty,
and load mathjax how they want - in the footer, only if
there is any math to be rendered, etc.

This should cause no difference in structure for the
default templates themselves.
@yuvipanda yuvipanda requested review from maartenbreddels and SylvainCorlay and removed request for maartenbreddels April 12, 2021 22:26
@yuvipanda yuvipanda mentioned this pull request May 6, 2021
@SylvainCorlay
Copy link
Member

This looks good to me. Merging!

@SylvainCorlay SylvainCorlay merged commit d7c286b into jupyter:master May 6, 2021
@MSeal MSeal added this to the 6.1 milestone Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants