stape-io / gtm-server-side-wordpress-plugin

Google Tag Manager Server-Side plugin for WordPress
https://stape.io/how-to-add-google-tag-manager-server-side-container-to-wordpress/
GNU General Public License v2.0
15 stars 2 forks source link

Remove jQuery dependency in favour of vanilla JS #11

Open roborourke opened 1 month ago

roborourke commented 1 month ago

Not sure if it matters if WooCommerce queues up jQuery on all pages anyway but the event handling could be easily swapped out for vanilla JS. This will mean better performance on sites that otherwise wouldn't need to load jQuery, at least not on all pages.

vladkononov commented 1 month ago

Hi @roborourke, there were never any complaints about it, we will internally discuss this and potentially add this to a backlog, but as a low-priority task. Thank you for the suggestion!