Very Large Javascript Execution time - Cornerstone/Pro

Hi Team

Per below, I’m seeing a really large execution time for the Cornerstone javascript - at 3.3 seconds :skull_and_crossbones:

The page tested is below:

Can I please get an understanding as to why this js file is taking so long? Is this a potential issue with WooCommerce sites using Pro?

Thanks
Sam

Profiling the site I came to a couple of conclusions.

Yes the stripe code is a running hot. I doubt you’ll want to remove that though.

The number of sliders on the page also seems to be bogging it down. An option to hold off slider rendering till the page is fully loaded / the slider is in view would probably boost your numbers. To test if that would really help you though, I’d try to compare your numbers when you don’t have your header assigned. There’s a number of slider fixes to go through before this feature though. Thanks for bringing this to our attention.

Hey @charlie - thanks for investigating this.

How best to hold off slider rendering until the page is fully loaded?
I’d probably want to look at doing that for the Header as well (with the sliders adde via Mega Menu dropdowns)

What did you mean by this also?

Cheers,
Sam

1 Like

I don’t think we have any options right now for sliders unless you got into some fancy Ajax loading of content. A lot of the javascript elements could use a feature like defer till the page has loaded to improve initial load time. Specially if the element is always initially offscreen. There’s a few things to do with fixing dragging, improving performance, and features like. There’s a backlog of slider stuff unfortunately, is what I meant by it, but it’s on our agenda for the year and it’ll get taken care of. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.