Bloated Javascript Loading on every page — Sloppy Developer Enqueues
-
You are enqueueing this file (and probably others), on every single page of someone’s WordPress site:
wp-content/plugins/google-analytics-for-wordpress/lite/assets/vue/js/chunks/vendor-0853f02f.min.js
Which appears to be a dynamic import from your frontend js file:
google-analytics-for-wordpress/lite/assets/vue/js/frontend.min.js
Either way, you’re causing a conflict with my plugin that loads Flatpickr (ONLY ON THE PAGES NEEDED), and because you are not including the translation files, users are now having the issue where it’s only showing the English version because your bundled version of flatpickr does not include all the translations.
If you are attempting to use dynamic imports, I suggest that you review how you have this setup for your dynamic imports for libraries like this (if you want to use the global namespace for them) should be done only when your component loads that NEEDS the date or time picker, not just ALWAYS loading it regardless.
Even if the user does not click on the admin menu to show your insights panel, you’re still loading everything regardless.
This adds extra bloat to user’s sites causing it to load this unnecessary javascript on every page. For now i’m having to manually dequeue or tell clients to just remove your plugin as you have everything bundled and dynamically imported (incorrectly) so there’s no easy way for me to work around this. Please fix.
The topic ‘Bloated Javascript Loading on every page — Sloppy Developer Enqueues’ is closed to new replies.