Hi @yordansoares
Thanks for your answer. Indeed, that is a great way to disable scripts and load them where you want on your website. I’m using this method to clear out unnecessary Javascript or CSS of plugins in the frontend of my websites.
Unfortunately, Google Recaptcha JS still causes errors in Google Page Speed Insights (for mobile). It says: “Remove unused Javascript”. The reason for this is because the JS that is loaded for Google’s recaptcha is too large. Google Page Speed Insights sees this JS file and says to remove the unused JS. Next google removes 20-30 points on the Page Speed test. I think that is strange…
Right now, I am searching for a workaround for this. Till today, I did not found anything, so I am thinking about removing Google’s Recaptcha and blocking spam with another technique. When I tested this out, my Page Speed results where perfect on mobile and desktop…
Kind regards,
Jef