Skip Navigation

[Resolved] jQuery and Eliminate render-blocking resources

This support ticket is created 2 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by kimD-6 2 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#2581583

Hi there,

Any plans on fasing out jQuery?

Or do you have any suggestion on how to prevent the "Eliminate render-blocking resources"?

Thanks!

#2581959

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/

#2582081

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 😉

#2582127

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

#2582139

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.

#2582151

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.

#2582163

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.

#2582167

My issue is resolved now. Thank you!