最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

performance - how to embed Pdf and Video Without effecting page speed?

programmeradmin1浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

I 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.

发布评论

评论列表(0)

  1. 暂无评论