<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>JS optimization causing scripts to 404

[ad_1]

Replies: 1

The plugin’s javascript optimization settings are adding an & instead of a ? to any scripts it’s optimizing. This is breaking the scripts and causing them to 404. Here’s an example: https://thehungrywaitress.com/mexican-vegetables/

In the source code you’ll see https://thehungrywaitress.com/wp-content/plugins/google-analytics-dashboard-for-wp/assets/js/frontend-gtag.min.js&ver=7.22.0 and it should be https://thehungrywaitress.com/wp-content/plugins/google-analytics-dashboard-for-wp/assets/js/frontend-gtag.min.js?ver=7.22.0.

In the console, you’ll see the script 404ing.

This is preventing ads from loading and other scripts from functioning on any site that uses this setting, so we’re hoping to get this bug fixed as soon as possible. Thank you!

  • This topic was modified 6 hours, 38 minutes ago by mediavine.
  • This topic was modified 6 hours, 17 minutes ago by mediavine.
  • This topic was modified 6 hours, 17 minutes ago by mediavine.
  • This topic was modified 6 hours, 17 minutes ago by mediavine.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer