-
Notifications
You must be signed in to change notification settings - Fork 70
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
RFE: Reduce project's JS/CSS payload size #87
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Also, I've recently realised that its not too hard to add js only for specific pages, i.e. those containing tab nodes (see executablebooks/sphinx-book-theme#165 (comment)). |
Would you be open to a complete rewrite of this package, similar to what I did for sphinx-autobuild? 👀 |
Not really lol, I've already set it up consistent with the EBP guidelines in #76 Obviously I'm open to suggestions and improvements where beneficial. |
|
FYI, I mainly said this to "pull @pradyunsg's leg", since I know he is a bit of a fan pypa/packaging.python.org#320 lol |
Noxify! |
Well there already a tox.ini.
nox has its uses; the live-rebuilds for messing around with scss in sphinx-book-theme is helpful. |
Fair enough. :) As long as my finger-memory of `.ox -s (tests?|lint|docs) works, I'm a happy kiddo. :) |
|
It is super redundant. OTOH, the main reason I do this is consistency across projects (not all my projects use pre-commit, yet!) and newbie-friendliness. It's easier to tell newcomers to "install nox, and use these nox commands" than "install nox and pre-commit, and use pre-commit for linting, everything else uses these nox commands". And for anyone familiar enough with pre-commit, well, |
linking executablebooks/meta#119 |
@chrisjsewell Thoughts on a complete rewrite of this project, to drop the dependency on semantic-ui + works with CSS-only w/ JS for "advanced" features like grouped tabs? It should make it easier to tweak the JS to implement stuff like #84 and #47. |
I'd say possibly, but it's low on the priority list. |
This RFE is still valid, and @foster999 has made #94, which looks like it does the needful. I'm not gonna come around to this myself anytime soon though. Context here. |
Is your feature request related to a problem? Please describe.
Currently, this extension results in 50+ kB of assets across 7+ network requests to be added to each page for a project's documentation.
Describe the solution you'd like
Significantly lowered payload size (drop the dependency on semantic-ui?) and consolidate CSS/JS files to reduce the number of network requests needed.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
This would also make it easier for "downstream" themes to customize how the tabs look, if the CSS for this project is self-contained in a single file. :)
The text was updated successfully, but these errors were encountered: