Title: Avoid publishing old JavaScript in modern browsers
Last modified: August 5, 2024

---

# Avoid publishing old JavaScript in modern browsers

 *  Resolved [ricardocosta](https://wordpress.org/support/users/madebyuh/)
 * (@madebyuh)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/avoid-publishing-old-javascript-in-modern-browsers/)
 * Hello,
 * The plugin has a red flag on the PageSpeed Report that says:
 * “Polyfills and transformations allow older browsers to use new JavaScript features.
   However, many are not necessary for modern browsers. For your integrated JavaScript,
   adopt a modern script implementation strategy by detecting module/nomodule functionality
   to reduce the amount of code sent to modern browsers while maintaining compatibility
   with legacy browsers.”
 * The file in question is from Age Gate: [https://dourowineselection.pt/wp-content/plugins/age-gate/dist/all.js?ver=3.4.0](https://dourowineselection.pt/wp-content/plugins/age-gate/dist/all.js?ver=3.4.0)
 * Please find the screenshot in this image: [https://prnt.sc/hFl7q7Jmj-tk](https://prnt.sc/hFl7q7Jmj-tk)
 * Best regards,
 * RC
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Favoid-publishing-old-javascript-in-modern-browsers%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [ricardocosta](https://wordpress.org/support/users/madebyuh/)
 * (@madebyuh)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/avoid-publishing-old-javascript-in-modern-browsers/#post-17952041)
 * After the last update, this issue has been fixed.
 * I’ll now close this topic.

Viewing 1 replies (of 1 total)

The topic ‘Avoid publishing old JavaScript in modern browsers’ is closed to new 
replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [ricardocosta](https://wordpress.org/support/users/madebyuh/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/avoid-publishing-old-javascript-in-modern-browsers/#post-17952041)
 * Status: resolved