Worrying results with Pagespeed Insights
-
As part of readiness for Google’s May 2021 incorporation of Core Web Vitals, I replaced the default Youtube embeddings on my site with WP YouTube Lyte, which was straightforward and works well. However, I’m observing strange, concerning results with the Pagespeed Insights metrics on a simple test page. It’s not clear whether I’m doing something wrong, there’s a bug in the plugin, or a bug in Pagespeed Insights.
Pagespeed Insights reports that the Mobile test downloads 541 KB of Javascript from youtube-nocookie.com:
https://www.youtube-nocookie.com/s/player/03226028/player_ias.vflset/en_US/base.js
https://www.youtube-nocookie.com/s/player/03226028/www-embed-player.vflset/www-embed-player.jsAnd it thinks that these scripts blocked the main thread for 1.635 seconds. The overall Mobile score was a mediocre 59.
BUT the Desktop metrics don’t call out those scripts, nor do they report those scripts blocking the main thread. The overall Desktop score was 99.
Even more curiously, when I use Chrome’s Developer Tools to monitor network requests, I don’t see those scripts being downloaded until I click the play button of the video.
I’m not experienced with WordPress — could I be doing something screwy? Or is Pagespeed Insights improperly clicking the video play button in its Mobile measurements? Given the supposed importance of Core Web Vitals to ranking starting in May, I’m forced to be more interested in “coding to the test” rather than delivering the best user experience.
If you’d like to see what I’m observing, I implemented a simple test page in a virgin WordPress 5.6, along with the same page sans the video:
https://3.232.69.144/youtube-test/
https://3.232.69.144/null-test/I’m running Pagespeed Insights on those URLs:
- The topic ‘Worrying results with Pagespeed Insights’ is closed to new replies.