-
Notifications
You must be signed in to change notification settings - Fork 65
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
Large download size #10
Comments
A good first goal is 100 KB. |
The gives this W3C mobileOK Checker interesting suggestion:
Can/should we implement it? |
Note that the "real" size of the page is usually less due to compression, eg, bootstrap goes from 120KB to 23KB. Images don't compress quite as well though... Also, a lot of what's good for HTTP/1.0 and HTTP/1.1 (eg, inlining and sharding) is bad for HTTP/2. |
Additional performance improvements:
<img src="media/logo.svg" onerror="this.src=this.src.replace('.svg','.png');this.onerror=null;" /> |
Surely there's a CSS optimiser that reads a collection of pages, and then makes a CSS file with only the rules used? ie: removes unused rules. |
oops, sorry. |
We do not try to support IE 8, so why a PNG fallback?
Perhaps it can be done in the future. The most complex thing is to have a good, responsive navbar. |
I've wondered myself as well whether an svg logo would be smaller, but as it seems it isn't. Before we apply it, we should compare svg vs png sizes. And about responsive images, their implementation seems to be shit, according to my testing. It seems that mobile firefox always downloads the largest image. |
@Calinou: SVG only then, doesn't matter much to me. @est31: However, the nginx proxy that c55 has set up compresses things with gzip. This (with a compression level of 4) results in the SVG being only 1003 bytes (note, however, that 2527 may be below the gzip minimum size threshold that c55 has set). Compressing the PNG is, predictably, far less successful, with an output size of 2862 bytes (more than the original). So an SVG is actually substantially smaller than the PNG. Responsive images [1]: I used http://petercollingridge.appspot.com/svg-editor on |
I noticed that the background images of the headers in other pages than home are 1920x1080, although you can only see a small part of it (e.g. in the community page you can only see the sky; my browser window is ~1920x1080). These images take almost 5 seconds for me to load (per page), while everything else loads in under 1 second. For the community tab and this browser resolution, you'd get the same visuals by just making the community header a solid blue background color, and speed up the page load by a factor of 5. |
I can reproduce what PilzAdam says, except that I have a few pixels of some trees showing up at the bottom. |
I agree, we could use plain colours or a gradient instead for the page jumbotrons. |
Another thing to consider would be using progressive JPEG so that low resolutions are loaded quickly and the images improve in quality as the download finishes. |
The website's gallery doesn't have thumbnails, and the bootstrap installation could be stripped down.
The W3C mobileOK Checker (which has some quite questionable suggestions, but its download size counter is useable) reports:
It explains the need:
The text was updated successfully, but these errors were encountered: