laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
While working on the redesign I became familiar with the existing CSS on PM. When an anonymous user loads the main page two CSS files are downloaded. common.css and Blue web-safe CSS. Using different tools and verifying against a list of 105 PM pages I was able to determine what CSS was not being used. This CSS can be removed which mean less data needs to be sent to the end users. HTML comments were another thing I found that can be stripped out. Here is the before and after of the main page: Current version: $ wc pm_divs.html 1545 6537 73719 pm_divs.html After stripping comments: $ wc pm_divs.html 1515 5942 70317 pm_divs.html A savings of 3,402 bytes for the main page and similar savings for all other pages on the site as well. Talk about some major bandwidth savings. I also found empty paragraph tags that I stripped out as well. Furthermore I noticed that the content being delivered does not include ‘Content-Encoding gzip’ or any other indication of compressions. As numerous studies have shown compression is a good thing. So why is there no compression before transmission of a web page? Edit: Linked to the CSS files. In reply to PM CSS and markup optimizations by kimmel
|
|