Code Execution Time Improvement For Wix Corvid Sites

Hi Wix Team,

Any plans for improving code execution time for pages?

Currently the page will first complete loading and then the Corvid code we have written for the page runs (marked by " Loading the code for the XXX page. To debug this code, open xxxx.js in Developer Tools. " in the browser console)

I noticed that some functions like the Repeater’s onItemReady() are executed alongside the page load but if there is a Wix Fetch or something under wixWindow.rendering.env === “browser” then it takes quite a while to load. Sometimes it takes far too long because the site will prioritize loading the entire page and then it triggers the custom code we have written.

EDIT: Also, even if some corvid functions related to making page elements visible on the screen are executed alongside page load they are not interactive until the " Loading the code for the XXX page… " is printed in the browser console which takes quite a while. This is if I leave these functions outside of the Rendering Env Browser statement. If I put these functions inside the statement then they are not even visible until the page fully completes loading.

2 Likes

Excellent question … would love to know the answer