Skip to content
Advertisement

Tag: pagespeed-insights

Implement v3 Recaptcha without recaptcha/api.js causing ‘Reduce unused JavaScript’ or ‘ Reduce the impact of third-party code’opportunities

I am able to get recaptcha to load on a website, with the async and defer tag on it. However, when I check Pagespeed Insights against it, I see two issues: Reduce the impact of third-party code. Third-party code can significantly impact load performance. Limit the number of redundant third-party providers and try to load third-party code after your page

What is @babel/plugin-transform-classes?

I run Google PageSpeed Insights on my site, and it reports an issue that is “Avoid serving legacy JavaScript to modern browsers”, as below: I have no idea of what is @babel/plugin-transform-classes, so I search online and it seems babel is a JavaScript compiler and @babel/plugin-transform-classes is a plugin. But I don’t know or install the compiler and the plugin,

Remove unused Javascript base.js (Youtube iframe api)

Google PageSpeedInsights flags Base.js as unused Javascript in my report. It’s pretty substantial at 487kb. Appears to come from including the Youtube player iframe api. Is this file needed and if so, does anyone know why it is being flagged as unused JS in the report? Iframe API: https://developers.google.com/youtube/iframe_api_reference Large file that gets flagged on PageSpeedInsights as unused JS: https://www.youtube.com/s/player/c88a8657/player_ias.vflset/en_US/base.js

Advertisement