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
Minify Assets / Get Rid of Generated style.css In Repo #704
Comments
|
I have some questions:
|
|
Partially answering my own question 2: Using http://compressorrater.thruhere.net/ I figured that we are going to save about that much: So if we minify, then we are going to save about 1 kB for the initial load of js files (subsequent loads should not download these files because of caching). Is it significant? I don't think so. What do others think? |
|
Ah crap! Just looked at the screenshot. :D Thinking about it again, I don't think that the numbers on the screenshot are after gzip. |
Google's algorithm is secret, of course, but failing mobile tests on that assessment page in the screenshot does rank you lower for mobile viewers—so it's natural to assume failing desktop tests would have similar consequences.
It's 24.3KB on https://docs.perl6.org/type/ComplexStr page. What are the complications for micro contributions? The assets will remain unminified in the repo. The only penalty for contributors would be extra prereqs when building a local copy of the docs, though even that can be avoided by extra Mojolicious routes ([Coke] is currently -1 on that idea) |
You can work on small things directly in your browser, without even cloning a repo. If JS is minified, then it is much harder. That being said, I have nothing against minifying CSS or HTML. So +1 for that, we should do definitely do that. |
You mean using GitHub editor or...? |
|
|
@zoffixznet - is there anything left to do on this ticket? if we're skipping minifying, and it looks like the .css is no longer kept int he repo... |
|
Oh yeah, everything was done in 54fb4b3 and other commits around Christmas. I forgot there was an open issue as well. |
Currently, we have two issues:
style.csswhich is an auto-generated file (reasons).We can solve both of those by including minification and SASS processing as an optional part of the build process that will run as part of the doc generation for docs.perl6.org, but if a contributor builds locally and they don't have prereqs for minification/SASS, they won't get that step run.
To still let users use the dev app without having the SASS-related prereqs, we can add a routes that will fetch the JS/CSS assets from https://docs.perl6.org/ if local versions aren't found.
The text was updated successfully, but these errors were encountered: