Lessons
-
Introduction
-
SEO
- Snippet's clickability in search engines
-
Indexing
-
Headings H1-H6
Images have the "alt" attribute.
The Title attribute of links
Content robots.txt
Duplicate "title"
Duplicate "description"
Human-understandable name of the picture
Rules for formatting text on a page
Micro-markup format requirements and recommendations
Validation microdata Google
Human-friendly link format
Errors in Robots.txt
The content of the site map
The site map file
Link formatting requirements
Hreflang tag
"canonical" tag
Spelling of interactive interface elements
-
Speed
-
Reduce the number of network requests
-
An overabundance of small pictures
Grouping CSS files
Grouping JavaScript files
An overabundance of font files
Redirects when uploading files
Availability of end-to-end CSS, JS files
Uploading duplicate files
Using JavaScript facades
Redirecting JavaScript code
Redirect from/to www version
Using sprite technology
The video player is connected correctly
- General assessment
- Configure the server
-
Speed up the display of the first content
-
Specifying default fonts
Font display mode
Setting up a pre-connection
Deleting a delayed download
File upload delayed or on demand
-
Reduce the size of graphic files
-
Minification of the embedded JavaScript code of the page
Minification of the embedded CSS code of the page
Minification of images without loss of quality
The total size of all images on the page
Font Optimization
An overabundance of monochrome icons
The presence of a monochrome font
Data optimization:Image URLs
Animated image format MP4, WEBM, SVG instead of GIF and WEBP
Cropping monophonic fields in images
Using the WebP format in images
Too high-quality images without using compression
Suitable video bitrate
Excessively large images
- Server performance
- Fix the locks
- Reduce the amount of code
-
Reduce the number of network requests
- Mobile adaptation
-
Software errors
- Code
- Mail operation
- Availability
- Server Settings
-
Convenience
- Text readability
- Interface
- Visual defects
- Interaction with other programs
- Image Favicon
-
Vulnerabilities
- Code
-
Server Settings
-
Uploading all page files via HTTPS
Strict-https header for increased security
Private access to service files
Encrypted IPv6 connection
Enabled error display in the north
SSL certificate validity
HTTPS Availability
Redirects to protected
Vulnerabilities of a secure SSL connection
HTTP headers for increased security
- Third-party services
Specifying default fonts
Most sites use custom fonts. But it takes some time from the moment the page is opened to the font files are loaded. Depending on the value font-display and file upload time there are 2 possible options:
- The browser hides the text from the user’s eyes and shows it only when the custom font file has loaded.
- The browser shows the text with the default font. Then the custom font file is loaded and the text style changes.
It is necessary to avoid abrupt font changes in the second scenario. When the default font has serifs, and the custom font without them, there will be a sharp change in the appearance of the page. This will distract the visitor from the process of exploring the site.
Choose a platform-independent default font in the same family as your custom ones. Ready-made kits are here.
There are 2 ways to specify fonts:
- In the
<body>tag of the HTML code of the page, specify the fonts in thestyleattribute like this<body style="font-family: Tahoma, Verdana, sans-serif">. - Add CSS code for the
bodytag to the HTML code of the page like thisbody { font-family: Tahoma, Verdana, sans-serif }
An example of an abrupt change in font style if the default font is different in style from the user:
Demonstration
HTML code
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
@font-face {
font-family: 'roboto-regular';
font-style: normal;
font-weight: 400;
src: url('./missed.php?font=1772851428.5346') format('woff2');
unicode-range: U+21-23,U+25-5F,U+61-7E,U+AB,U+BB,U+401,U+410-44F,U+451,U+2013-2014,U+2018-2019,U+201C,U+201C-201E,U+2026,U+20BD;
font-display: swap;
}
body {
font-family: 'roboto-regular';
}
.btn {
color: #000;
display: inline-block;
margin-bottom: 5px;
text-decoration: none;
padding: 5px 10px;
border: 1px solid #000;
border-radius: 5px;
}
.btn:hover {
background-color: #ddd;
}
.btn.active {
background-color: #000;
color: #fff;
}
</style>
</head>
<body>
<a class="btn" href="./missed.php">Обновить страницу</a>
<br />
<h2>Этот текст сначала отображается шрифтом по умолчанию с засечками. Затем через 3 секунды загрузится файл шрифта без засечек и дизайн страницы резко изменится.</h2>
</body>
</html>