Lessons
-
Introduction
-
SEO
- Snippet CTR
-
Indexing
-
Headings H1-H6
Images have the alt attribute.
The Title attribute of links
Splitting the page into HTML5 sections
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
-
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
- Caching
-
Showing the first content
-
The sequence of connecting JavaScript files
Specifying default fonts
Font display mode
Setting up a pre-connection
Deleting a delayed download
Delayed loading of external services
-
File size
-
Minification of CSS to reduce its volume
Server GZip compression function
Minification of the embedded JavaScript code of the page
Acceptable size of the HTML code of the page
Minification of the embedded CSS code of the page
Minification of images without loss of quality
Minification of JavaScript files to reduce its volume
The total size of all images on the page
Unused CSS code
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
Unused JavaScript code
Cropping monophonic fields in images
Using the WebP format in images
Too high-quality images without using compression
Suitable video bitrate
Excessively large images
-
Slow files
-
HTML code generation time
Title "Keep alive"
Optimal time to download files from the server
Using the modern HTTP2 protocol to speed up the site
Adding lazy loading
Long JavaScript code execution time
Time to download files from the server under load
The server is located in the same country where the users of the site live
No requests to another country that cause page loading to be blocked
Blocking files
-
Number of network requests
-
Mobile adaptation
- Broken layout
- Compliance with guidelines
-
Software errors
- Code
- Mail operation
- Availability
- Server software
-
UX User Experience
- Text readability
- Logic and convenience of the interface
- Visual defects
-
Integration with programs
-
Phones without a clickable link to start a call quickly
Links for Email addresses
Manifest validation.json with a list of favicons
Snippets of the site when sending links in social networks and instant messengers
Tag for specifying a large favicon
The BrowserConfig file
Apple touch bar icon for Mackbook pro
Favicon.ico file
-
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 software
The sequence of connecting JavaScript files
The page consists of dozens of files. They are loaded in the order in which they are listed in the HTML code of the page. JavaScript is responsible for the interactive part of the page, and CSS and images for the visual.
The sooner the user sees the graphic elements and content, the sooner he starts studying it, the higher the page conversion will be. To prevent JavaScript files from delaying the display of page graphics, transfer the connection of JavaScript files at the end of the page, after CSS files and images.
Below is an example of the difference between enabling JavaScript at the beginning and at the end of a page.
Demonstration
PHP code
HTML code
<?php
$mode = $_GET['mode'] ?? 'start';
$jsHtml = '';
for($i = 0; $i < 100;++$i) {
$jsHtml .= '<script src="./10-kb-js.js?t='.microtime(true).'.'.$i.'"/></script>'."\n";
}
?><!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.product img {
max-width:100%;
}
.product {
position: relative;
}
.product .time {
position: absolute;
left: 5px;
top: 5px;
background-color: #fff;
padding: 1px 4px;
}
.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>
<script>
// Функция, которая добавляет на изображение время окончания загрузки
function endLoading(el) {
var time = performance.now()/1000;
el.parentNode.insertAdjacentHTML("beforeend", '<div class="time">'+time+' с</div>');
}
</script>
<?php
if($mode === 'start')
echo $jsHtml;
?>
</head>
<body style="font-family: sans-serif;">
Режим: <a class="btn <?=$mode === 'start' ? 'active' : ''?>" href="./js_not_at_end.php">Подключение JavaScript в head</a> <a class="btn <?=$mode === 'end' ? 'active' : ''?>" href="./js_not_at_end.php?mode=end">Подключение JavaScript в конце страницы</a>
<br />
<p>Обратите внимание на разницу во времени загрузки изображения.</p>
<div class="product">
<img src="./photo.jpg?t=<?=microtime(true)?>" onload="endLoading(this)" />
</div>
</body>
<?php
if($mode === 'end')
echo $jsHtml;
?>
</html>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.product img {
max-width:100%;
}
.product {
position: relative;
}
.product .time {
position: absolute;
left: 5px;
top: 5px;
background-color: #fff;
padding: 1px 4px;
}
.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>
<script>
// Функция, которая добавляет на изображение время окончания загрузки
function endLoading(el) {
var time = performance.now()/1000;
el.parentNode.insertAdjacentHTML("beforeend", '<div class="time">'+time+' с</div>');
}
</script>
<script src="./10-kb-js.js?t=1783155939.3575.0"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.1"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.2"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.3"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.4"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.5"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.6"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.7"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.8"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.9"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.10"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.11"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.12"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.13"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.14"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.15"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.16"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.17"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.18"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.19"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.20"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.21"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.22"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.23"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.24"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.25"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.26"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.27"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.28"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.29"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.30"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.31"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.32"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.33"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.34"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.35"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.36"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.37"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.38"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.39"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.40"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.41"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.42"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.43"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.44"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.45"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.46"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.47"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.48"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.49"/></script>
<script src="./10-kb-js.js?t=1783155939.3575.50"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.51"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.52"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.53"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.54"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.55"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.56"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.57"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.58"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.59"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.60"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.61"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.62"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.63"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.64"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.65"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.66"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.67"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.68"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.69"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.70"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.71"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.72"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.73"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.74"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.75"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.76"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.77"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.78"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.79"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.80"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.81"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.82"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.83"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.84"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.85"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.86"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.87"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.88"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.89"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.90"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.91"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.92"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.93"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.94"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.95"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.96"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.97"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.98"/></script>
<script src="./10-kb-js.js?t=1783155939.3576.99"/></script>
</head>
<body style="font-family: sans-serif;">
Режим: <a class="btn active" href="./js_not_at_end.php">Подключение JavaScript в head</a> <a class="btn " href="./js_not_at_end.php?mode=end">Подключение JavaScript в конце страницы</a>
<br />
<p>Обратите внимание на разницу во времени загрузки изображения.</p>
<div class="product">
<img src="./photo.jpg?t=1783155939.3576" onload="endLoading(this)" />
</div>
</body>
</html>