-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
language_data.js is loaded from all pages. #8419
Labels
Milestone
Comments
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Nov 18, 2020
…-search pages The ``language_data.js`` is only used on search page. But it is always loaded meaninglessly. This fixes not to load it on all non-search pages.
Thank you for reporting. It will be fixed soon. |
tk0miya
added a commit
that referenced
this issue
Nov 20, 2020
…_search_page Fix #8419: html search: Do not load language_data.js in non-search pages
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
language_data.js
is used bysearchtools.js
.But
language_data.js
is loaded in all pages.sphinx/sphinx/builders/html/__init__.py
Line 304 in 68cc0f7
Can we move it to
search.html
?sphinx/sphinx/themes/basic/search.html
Line 14 in af62fa6
To Reproduce
See this page and show source.
https://docs.python.org/3/library/stdtypes.html
Expected behavior
If language_data.js is used only by searchtool.js, don't load language_data.js unless searchtool.js is loaded.
Your project
python/cpython project, Docs/
Environment info
Additional context
The text was updated successfully, but these errors were encountered: