cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
279 stars 83 forks source link

Disabling Javascript #254

Closed AvdLee closed 4 years ago

AvdLee commented 4 years ago

Hey there!

First of all, thanks for creating the plugin. It's great and I'm using it with a lot of joy. However, I'm currently trying to remove as much Javascript from my website as possible.

I was wondering, for what reason this plugin is using Javascript (wpp-5.0.0.min.js) and could I disable it without breaking the plugin?

Thanks!

cabrerahector commented 4 years ago

Hi Antoine, glad to know you're enjoying the plugin :)

Regarding the JS file, WPP uses it for various things but mainly to keep track of your post/page views. Also it's only a few KBs in size (less than 5 KBs if I remember correctly?) so you wouldn't be gaining a lot of performance from removing it.

AvdLee commented 4 years ago

Thanks for the reply, @cabrerahector. Makes sense! In that case I can't do without it as well. I've now optimized it through Autoptimize to at least have less requests going out.

Thanks!