Hi there,
Any plans on fasing out jQuery?
Or do you have any suggestion on how to prevent the "Eliminate render-blocking resources"?
Thanks!
Hello,
No, there isn't any plans for these.
Toolset Blocks plugin is just a plugin based on WordPress built-in Blocks editor, so it depends on your WordPress website itself, you might consider other optimization plugins to add those feature into your website, and follow our document to exclude Toolset CSS/JS files from those plugins:
https://toolset.com/faq/how-to-use-optimization-plugins-with-toolset/
Ok, I am trying to build an archive page for upcoming event (custom content type) on my local machine. The page is very basic, has no visible JS functions but still loads a lot of jQuery related stuff. It must be Toolset Types or Toolset Blocks loading it since it is the only page (at this point of the development) loading jQuery, Apart from the events detail pages which load Toolset Maps which also uses jQuery.
At this point I can isolate Toolset to be only used for our events pages but because of jQuery loading I have to be picky on where to use it because it will have a negative inpact on our page speed scores. Sadly enough, because I really came to enjoy Toolset.
I will be using WPRocket later on but as far as I know it can not prevent the "Eliminate render-blocking resources" warning because of jQuery loading. The theme I'm using (GeneratePress) and a lot of pluging with an eye for performance are not using jQuery any more because of this. But I'm sure you're aware of that 😉
I assume you want to dequeue Toolset JS/CSS files in other pages, if it is, you can consider custom codes, for example below similar thread:
https://toolset.com/forums/topic/struggling-to-dequeue-toolset-common-es-frontend-from-front-end/#post-2201363
Thanks, at this point no jQuery files are loading on other pages. Only on the one very basic Events archive page I made with "Wordpress archives" in Toolset. I needed some extra filters on that page because it can only show upcoming events based on a date custom field type. I'm assuming (yeah well, hoping really) this filtering is done sever side so it does not require jQuery. Still jQuery is loaded. Maybe bacuse of the character limit in the "Single Field" block but still, loading a library like jQuery only for a caharcter limit is a bit overkill.
The Maps block is also using jQuery so I am now thinking about building a custom block for a Google map, with Vanilla JS, just to have it not load jQuery. Which is somewhat of a strange evolution.
Anyhow, thanks for your replies.
Unfortunately, The Maps block requires jQuery to render Google Maps, so there isn't such kind of built-in feature within Toolset plugins, you can add a feature request:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Our developers will evaluate it.
I think you're missing the point. I know it requires jQuery. That's why I am considering not using it and building my own block. If I had the time I would be doing that for all features I'm using Toolset for which require jQuery. If I would find an option similar to Toolset not requiring jQuery I would ditch Toolset completely.
My issue is resolved now. Thank you!