HTML download acceleration

I want to speed up the loading of an HTML page. I know that I can compress HTML, JS and CSS, however I thought about it even further. Instead of having links to CSS and JS files, I would (or the server) just copy and paste their contents into HEAD directly. This is mainly for storing multiple TCP routes on a web server.

What I don't know ... Does the browser provide a separate HTTP request for each JS and CSS file?

Appreciate your entry

Thank! -Assaf

+3
source share
3 answers

Yes, there is a separate HTTP request for each of JS and CSS. However, the TCP connection may be the same and may vary depending on the Keep-Alive header.

http://en.wikipedia.org/wiki/Keepalive

, JS CSS . CSS JS , .

, , -. , IIS, IIS

http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/iis/d52ff289-94d3-4085-bc4e-24eb4f312e0e.mspx

+1

. , JS CSS- , . , , , , , JS CSS . . Tutorial .

, , - JS CSS HTML .

HTML JS CSS , .

+1

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


All Articles