Optimizing loading video on html page with the replacement of the original preview image instead of video.
With Vue.js: vue-lazy-youtube-video
With React.js: React-Youtube
Source of replacement method: YouTube video
Inspiration
Inspired by Vadim Makeev. Vadim created a comprehensive tutorial in which he shows how to lazyload YouTube videos properly.