-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR - Remove jQuery dependency #113
Comments
I agree, that would be a good move. Personally I disable all the JavaScript and CSS from Shared Counts and change the email link to a I'm not very good with vanilla JS. Would you be able to update Shared Counts to remove the dependency without reducing functionality (ie: modal still works)? Or should we include a "no JavaScript" option in the plugin that replicates what I already do on my client sites? |
Oh that's a good idea. That seems like the path of least resistance. Then another update at some point could remove jQuery. I could probably do it, but it would be a while. I'd love a snippet if you have that handy too btw :) |
Here's what I do:
|
Now that I look at it, I remember that I already built this functionality into Shared Counts for when AMP is active :) https://github.com/jaredatch/Shared-Counts/blob/develop/includes/class-shared-counts-amp.php But I agree, there should be an option to enable this for non-AMP pages too. |
I just wanted to make an official feature request to remove the dependency on jQuery. For many of our client sites and theme demos we'd like to use Shared Counts (has been our go to for a while) but on many of these sites it's the only plugin relying on jQuery, which causes performance issues. I know it's not a big deal to many, but we see much better pagespeed and lighthouse scores on sites/pages without jQuery.
Figured I'd throw this out there to see what y'all think :)
The text was updated successfully, but these errors were encountered: