Friday, March 29, 2024
No menu items!

How to speed up your site by 68.35% with one line of code

Must Read

Here’s an interesting trick on how to speed up your site by 68.35% with just one line of code.

The latest versions of browsers implement new solutions to speed up the transfer of resources from server to client by depositing them in the cache, even for subsequent offline use.

Specifically, these techniques are called prefecthing and prerendering .

Prefecthing allows you to download resources such as HTML, CSS, JS, Images pages.

The speed of loading the entire page depends on which resource has been precarious.

The prerendering adds an additional level to the prefecthing, necessary to have the page ready to be shown to the user, loading it and executing it at a higher speed.

The end result using these techniques is smoother browsing, as the various pre-loaded resources are available instantly.

The browsers with the best performance, at present, are IE and Chrome.

 

It is sufficient to insert in the pages, preferably between the <HEAD> tags, these lines of code:

<link rel = ”prefetch” href = ”your.css” />

<link rel = ”prerender” href = ”tuapagina.html” />

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest News

How Does Drug Trafficking Affect San Diego Tax Payers?

Drug trafficking is a significant problem in California and San Diego specifically. Seizures of illegal drugs at the San...

More Articles Like This