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
Delayed loading of external services
First of all, you need to download the content that is located on the first screen. This way the user will start exploring the site faster, which will increase the conversion rate. The download of all other content needs to be postponed. To do this, call the loading of heavy scripts and services in the window.onload event or at the time of their demand.
Delayed loading of analytics tags
Although companies that supply analytics systems recommend downloading their code as early as possible, they do not provide technical explanations why this should be done. Therefore, it is possible and necessary to load the counters postponed.
You can postpone the Yandex Metrica download like this:
window.addEventListener("load", function() {
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(123123123, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
});
Google analytics like this:
window.addEventListener("load", function() {
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://www.googletagmanager.com/gtag/js?id=G-123123123", "ga");
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-123123123');
});
In addition to the Yandex metric and Google Analytics in the event window.onload need to load all advertising and referral counters.
Cartographic services, online consultants, third-party authorization systems (VK ID, Yandex ID, etc.)
If the map is located on the first screen, then it needs to be loaded immediately, if below, then in the window.onload event.
It is done this way:
window.addEventListener("load", (event) => {
setTimeout(function() {
// Here is a call to the download code
}, 50);
});
``
or jQuery version
```language-javascript
$(window).on("load", function(event) {
setTimeout(function() {
// Here is a call to the loading code
}, 50);
})
Captchas
The captcha script must be initiated when the form fields are filled in. That is, by the focus event on any of the form fields.
Here is the jQuery code that initiates the Yandex captcha for the form when the user starts filling it out:
“language-javascript /A function that connects a captcha to a form/ function initSmCaptcha(form) { // Check if a captcha was initiated earlier if(form.is(‘[sm-captcha-applied]’)) return; // Adding captcha initiation at the focus event form.find(‘[type=text], [type=tel], [type=email]’).focus(function() { form.attr(‘sm-captcha-applied’, ”); // Adding a block unique to the form for displaying captchas var containerId = ‘captcha-container-‘+(new Date).getTime(); form.append(‘
’); var renderCaptcha = function() { window.smartCaptcha.render(containerId, { sitekey: ‘SMARTCAPTCHA_CLIENT_KEY’, invisible: true }); }; if (!window.smartCaptcha) // Loading the captcha code $.getScript(‘https://captcha-api.yandex.ru/captcha.js’, renderCaptcha); else renderCaptcha(); }); } “`