- SOLVED - Speed up page transitions via wixLocation

Hi,

I have noticed that when an onClick event is triggered within a repeater to direct to the new page this seems to be very slow, to the stage that I need to inform the user that something is happening by changing the label of the button. It takes around 2/3 second to direct to the new page.

Is it possible to speed this up?

$w('#datesButton').onClick((event) => {
                        $w('#datesButton').label = "Please Wait...";
                        wixLocation.to("/courses/" + encodeURI(itemData.coursesCategory) + "/" + encodeURI(itemData.title) + "#anchor1");
                    })

Thanks

2 Likes