Correlation does not prove causality.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Correlation does not prove causality.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Tim Holloway wrote:One of the poorest-performing web pages I ever ran across was one of the simplest. It was about 6 buttons on a blank page.
However, the designer had created the button graphics in Visio and saved them as bitmaps. Not realizing that the bitmaps were something like 1600x1200 pixels per button image. The performance hit came when the client-side HTML renderer had to scale them down to the 16x12 pixel images that the actual HTML specified. It was a lot of CPU work for relatively little to show for it.
Batching JavaScript and CSS embedded within a webpage won't help much. The page transmits as a unit and caches as a unit, so no other pages can share the embedded JavaScript and CSS. If the JavaScript and CSS files each have discrete URLs of their own, then caching can work, since the cache key is the URL of the object being cached.
The other reason for not mixing HTML, CSS and JavaScript in the same transmission is that most of the really efficient compression algorithms work by locating frequently-used patterns. When you have 3 different types of content in the same response, the compression algorithms have 3 radically-different frequently-used pattern sets to compact. That causes the overall compression to be less efficient.
Correlation does not prove causality.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Correlation does not prove causality.
Correlation does not prove causality.
Roger F. Gay wrote:
Where I'd like to focus just now is compressing the product data, which comes from a servlet as xml.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Tim Holloway wrote:
Roger F. Gay wrote:
Where I'd like to focus just now is compressing the product data, which comes from a servlet as xml.
That part's easy. Just ensure that the Content-Type header that you're writing for the XML matches one of the MIME types that you indicated in the Connector. And if it doesn't, add it!
Correlation does not prove causality.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Correlation does not prove causality.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Note: There is a tradeoff between using compression (saving your bandwidth) and using the sendfile feature (saving your CPU cycles). If the connector supports the sendfile feature, e.g. the NIO connector, using sendfile will take precedence over compression. The symptoms will be that static files greater that 48 Kb will be sent uncompressed. You can turn off sendfile by setting useSendfile attribute of the connector, as documented below, or change the sendfile usage threshold in the configuration of the DefaultServlet in the default conf/web.xml or in the web.xml of your web application.
Correlation does not prove causality.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|