javascript - What is the real benefit of using external css and js in terms of page loading speed? -


The actual advantage of using external CSS and JS is directly loaded in the context of code ... and in the context of the page Speed?

If we are controlling the whole site with a header.php / aspx file? Does the use of external files load the page fast?

My question only relates to loading speed of the page.

the basis of the counter-request (i.e., only considering the page load performance of a page), speed -According to separating the files you actually affect the small display. But when looking at performance, you increase efficiency while loading multiple pages using the same JS or similar CSS. In those cases, the contents of JS / CSS are only once filled for all requests.

Although you did not ask it as part of your question, it also helps in retaining the code. If you make a change in your CSS and load into multiple pages, if you embed JS / CSS in the page then you have to make the same changes to all your pages.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -