📜 ⬆️ ⬇️

Optimize file size: compact stream

After a series of articles on minimizing the size of files and distributing them across several hosts , I had a question: what is the optimal ratio between the number (or size) of “embedded” and external files? Which part of the page should load along with the main HTML file, and which part only with external files? To solve these and a number of other issues, I put together a test environment in the form of a single page, for which various optimization techniques were applied (at the same time I looked at how all these techniques actually affect the page loading speed).

Step One: A Simple Page



I started with a regular page for which only gzip-compression of the HTML file was used. This is the simplest thing that can be done to optimize the page (in fact, the reason was that I did not want to specifically disable compression for one host, and then turn it back on :). This page was taken as a basis with which everything else was compared.
')
read further on webo.in →

Source: https://habr.com/ru/post/27530/


All Articles