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
To prepare a commercial offer.
190 ₽
50 pages for 10 days
  • 1 page gives 1 tool launch Checking the page.
  • Purchased for a specific site
  • Restrictions on other tools remain the same
PRO subscription
For regular work on a site or a group of sites.
1 580 ₽
3,500 pages per week. The subscription period is 1 month.
Wallet
A separate page balance that complements the PRO subscription balance.
190 ₽
Number of pages
  • An active PRO subscription is required to use the wallet balance
We use cookies. By continuing to use the site, you agree to the processing of personal data in accordance with privacy policy. I agree