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
An overabundance of small pictures
To download a file, the browser spends time on service operations. It is constant and does not depend on the speed of the Internet connection. That is, it may take 1 millisecond to download a file, and up to 100 for service operations.
To speed up the site, programmers group many small icons into one large file. This is called sprite layout.
It is better to transfer some SVG images to a CSS file. For example, it is more reasonable to place the site logo from the header in a CSS file. This way you will reduce the number of requests and reduce the total size of the transmitted data due to better compression. So if the CSS file weighs 100KB in compressed form, and the logo in SVG is 20KB, then when combined, their size will be less than 120KB. This is due to the features of GZip compression algorithms.
Lesson on using sprites. [Service for generating SVG sprites](https://svgsprit.es /).