Lessons
-
Introduction
-
Search engine optimization
- Broken links
- Site map
- Micro-markup
- Robots.txt
- References
- Text
- Duplicates
- Basic
- Pictures
-
Speed
-
Minification
-
Minification of CSS to reduce its volume
Minification of JavaScript files
Minification of inline CSS code
Minification of images without loss of quality
Minification of JavaScript files to reduce its volume
Unused CSS code
Data optimization:Image URLs
Animated image format MP4 and WEBM instead of GIF and WEBP
Unused JavaScript code
Using the WebP format in images
Too high-quality images without using compression
Suitable video bitrate
-
Reducing requests
-
An overabundance of small pictures
Grouping CSS files
Grouping JavaScript files
An overabundance of font files
Availability of end-to-end CSS, JS files
The presence of a monochrome font
Uploading duplicate files
Using JavaScript facades
Redirecting JavaScript code
Adding lazy loading
Redirect from/to www version
- Fonts
-
Loading time
-
Acceptable size of the HTML code of the page
HTML code generation time
The total volume of all images on the page
Total loading time
Total page load time.
Display time of the first graphic
Optimal time to download files from the server
Time to download files from the server under load
Blocking files
- Server Settings
- Pictures
-
The first content
-
The sequence of connecting JavaScript files
Font display mode
Setting up a pre-connection
Removing lazy loading
Long JavaScript code execution time
File upload delayed or on demand
The server is located in the same country where the users of the site live
Requests to another country that cause page loading to be blocked
-
Minification
- Mobility
- Bugs
-
Convenience
- Social networks
- Web Application Manifest
- Favicons
- Basic
- Text readability
-
Security
- Encrypted connection
- Exploits
- Vulnerabilities
Setting up a pre-connection
Preliminary connection to the server
Often sites download files from external services. These can be maps or social media widgets. Those, in turn, download data from their sources.
For example, when the Yandex map is displayed on the site, the script is loaded https://api-maps.yandex.ru/services/constructor/1.0/js /, and he requests a photo of the cards from the address https://core-renderer-tiles.maps.yandex.net. Thus, after loading the script, he spends time connecting to the site that gives out pictures.
But you can speed up the work of maps by adding a special code to the page that will create a connection to the address https://core-renderer-tiles.maps.yandex.net even before loading the script itself.
<link rel="preconnect" href="https://core-renderer-tiles.maps.yandex.net" crossorigin />
<link rel="dns-prefetch" href="https://core-renderer-tiles.maps.yandex.net" />
This way you will speed up the loading of the map from a few tens to hundreds of milliseconds.
But it only makes sense if the map or social media widget is on the first screen. In all other cases, postpone loading the map until the rest of the page loads, or until the user scrolls through the page and is about to see the map.
Preloading files
Preloading files does not help to load the page faster, but only helps to display meaningful content faster. Therefore, there is no point in preloading CSS and JavaScript. You will not be able to preload pictures and videos, since it is not possible to upload a picture in accordance with DPR.
It is worth preloading font files in order to display the text content of the page as quickly as possible.