Lessons

Using JavaScript facades

Facade is a technology for optimizing the download of some popular services: videos from video hosting sites and instant messengers.

Its essence is as follows: instead of downloading all the functionality, a special small file is downloaded that visually simulates the service. When the user wants to use the desired function, the main script is loaded.

For example, for YouTube videos, the facade loads a preview image and displays the play button on top. Visually, it looks like a real service code. The YouTube files themselves are downloaded at the moment when the user hovers the cursor over the video. Thus, we postpone the loading of heavy functionality until the moment when it will be in demand by the user.

You can create custom facades to speed up page loading. To do this, you need to visually simulate the desired service, and download the main code at the time of the interaction.

PRO subscription for working with the service

Promo
Checking 50 pages in the tool "Checking the page"
190 ₽
The subscription is activated for 10 days and is linked to a specific site.
PRO subscription
3,500 pages per week in tools "Checking the page" and "Full site scan".
1 580 ₽
The subscription is activated for 30 days and you can scan any site.
Wallet
Additional pages that are credited to a separate balance. For checking large sites.
200 ₽
Number of pages
An active PRO subscription is required.
We use cookies. By continuing to use the site, you agree to the processing of personal data in accordance with privacy policy. I agree