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
File upload delayed or on demand
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 loading 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(); }); } “`