Lessons

Using JS 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 loading all the functionality, a special small file is loaded that visually simulates the required function. 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.

Check your website
It's free and will take from 11 to 45 seconds

We use cookies. By continuing to use the site, you agree to the processing of personal data in accordance with privacy policy. I agree