Question:
How can I speed up my Wix store Page
Product:
I’m using Wix studio
What are you trying to achieve:
I’m trying to remove the Wix unused JavaScript code in order to reduce the main thread.
What have you already tried:
I have removed all the effects needing JavaScript, I have resigned the images, redesigned my page on the simplest way
Additional information:
I need something fast enough to be used my customers.
Good question,
My tip is to avoid this :
$w.onReady(async function () {
$w(“#messageText”).text = “On loading…”;
await LoadFunction();
await CalculateFunction();
}
and replace by this :
$w.onReady(async function () {
$w(“#messageText”).text = “On loading…”;
initialization();
}
async function initialization(){
await LoadFunction();
await CalculateFunction();
}
The idea is to don’t block the display of the page.
and if you can try think to use this :
await Promise.all([ LoadFunction(),CalculateFunction();]);
On my site these modifications provide very good results escpecialy if you call backend functions. Fore sure you will not have the results of your calculation earlier but you avoid the blank page for the visitor.
I recommend trying the Website Speedy tool for WIX. It’s an easy-to-use tool that improves core web vitals and boosts site speed. It only takes about 5 minutes to set up and comes with a 14-day free trial. You can install it here: Website Speedy - load faster | Wix App Market | Wix.com .