gtmetrix

How to prevent YouTube js calls from slowing down page load

别来无恙 提交于 2020-01-03 07:13:22
问题 I am using https://gtmetrix.com to diagnose issues with my page speed. The page in question has one embedded YouTube video and GTMetrix is saying that this video's JS calls are slowing down page load speed. This is the call being made: <iframe width="640" height="360" src="https://www.youtube.com/embed/PgcokT0AWHo" frameborder="0" allowfullscreen></iframe> 回答1: EDIT: as of October 2019, this is not working anymore (Thanks to @CpnCrunch for the update). For the cases where it's not impacting

How to enable gzip compression and leverage browser caching in Pinterest, Twitter and facebook Javascript files.

走远了吗. 提交于 2019-12-13 17:25:04
问题 As part of performance tuning, GTMetrix is suggesting to enable enable Enable gzip compression and leverage browser caching with Pinterest, Twitter and facebook JS files. These are usually done from the server they are served from. I am not able to find out how to request these companies to make these files Gziped and have them cached. Please help in making these files Gziped and cached. Advance thanks in helping out. 回答1: Unfortunately you cannot gzip external sources. Unless you have code