I have a WordPress site and I upload a lot of pdf and videos use embedding techniques but now my website speed is very low. so i want to increase the page speed now, I am going to delete all the iframe from my website and want to replace them with responsive iframe, but I don't know how to use embedding. currently, i embedded all pdf using google drive embedding. should I stop embedding??
I have a WordPress site and I upload a lot of pdf and videos use embedding techniques but now my website speed is very low. so i want to increase the page speed now, I am going to delete all the iframe from my website and want to replace them with responsive iframe, but I don't know how to use embedding. currently, i embedded all pdf using google drive embedding. should I stop embedding??
Share Improve this question edited Feb 13, 2021 at 7:12 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked Feb 13, 2021 at 6:22 Fahad smile Academy PakistanFahad smile Academy Pakistan 72 bronze badges1 Answer
Reset to default 0I would suggest you to load PDFs & videos on your page after the page is completely loaded via AJAX. You can also use a logic in which only after the page loads completely, load the PDFs & videos on mouse move and while the page loading is in progress show a loader in place of PDFs & videos.
I have used this technique at many places and it works like a charm. Hope this helps you.