Skip Navigation

[Resolved] Maps Plugin javascript files take massive time to load

This support ticket is created 6 years, 4 months 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Beda 6 years ago.

Assisted by: Beda.

Author
Posts
#923291

Hi,
I have the toolset Maps plugin installed. there are 2 problems:

1- the javascript files load on all pages, even when there are no maps. here is a taxonomy archive page that doesn't have any maps:
hidden link

2- the javacript files load very very late, which keeps the pages loading for so long.

please check the waterfall graph of gtmetrix.com for the same taxonomy page above.
hidden link

is there a way to load the javaxript files only when there is a map? i use the maps plugin ov very few posts out of thousands of posts, it is unfair to get all visitors to keep loading the js files, especially if they load that late.

also, is there a way to avoid problem #2?

thanks in advance

#923481

1. is there a way to load the javaxript files only when there is a map?

No, not yet, but this is a feature we plan to work on.

It will be a filter that allows to turn them off and on where you like.

However, Maps requires those scripts.
They should not slow your site down.

2. About the load time on several posts on a list, this may if the amounts are considerable affect the performance.

For this, I can only suggest to wait for such a feature to be implemented to Toolset.
(We plan this in a wider asset, where you can also control other scripts of Toolset)

You would be notified by the Changelog or Blog Posts about such a feature, or, if you wish I can update you here.

#948049

Thanks Beda,

I will keep an eye on the blog posts and changelog. however, I appreciate if you let me know when this feature gets added, as i will postpone using the maps plugin until this feature becomes available.
thanks.

#948953

Sure, hence I set this ticket to "fixed in next release" which has to be understood as "fixed in a next release" (not necessarily the next immediate)

I'll update you here once it's made.

#1134926

Toolset Maps now has had a lot of improvements in the assets loading.
Other improvements for other Toolset Plugins are still on the way.