-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Move JS to bottom of page #78
Conversation
…ottom Conflicts: sphinx_rtd_theme/layout.html
Thanks for the sub. @ehough I'd rather not change the block names since they are the standard for Sphinx templates and as much as I don't like the way they have stuff setup, seems prudent to stick with convention. @ericholscher Dunno how moving the JS to the bottom effects your loading in RTD. As I remember it, I tried something like this before, but your overwrites once it moved to RTD caused problems. The JS being loaded is pretty minimal, so the gain isn't huge if that was/is the case. |
I don't remember exactly what broke. I believe that as long as you keep the On Sun, Jan 5, 2014 at 5:04 PM, Dave Snider notifications@github.comwrote:
Eric Holscher |
FWIW I don't see any jQuery-dependent JS in rtfd/readthedocs.org that is not addressed by this PR. |
Conflicts: sphinx_rtd_theme/layout.html
You can see a demo of this now at http://tubepress.readthedocs.org/en/latest/. Feel free to test at your convenience! (it also includes #69) |
Seems to work fine. I'm good with merging it. |
Though we need to keep the block names to keep parity with Sphinx. |
Thought I'd check in to see if we can get this PR merged.
I addressed this in e16b8a8 by re-using Sphinx's As a reminder, you can view a demo of this PR at http://docs.tubepress.com/ |
Sorry, I've been busy and forgot about this one. I'll check this out now. |
K, checked out. Apologize for the long wait. Back in startup land so I'm back to hacking on the weekends with this. |
It was moved away from <head> to the bottom of the page in readthedocs#78. This is a compressed version of readthedocs#545 by @Blendify, which fixes readthedocs#328.
Thought I'd try moving all the JS to the bottom of the page for performance purposes. Work fine in my testing. Curious to hear your feedback.
Thanks for this project!