Hide/Show stopped working when published

Starting yesterday, hide/show on a number of pages stopped working on published site while working properly in ‘Preview’. After refreshing (sometimes more than once), the published pages sometimes work properly.
On these pages I use extensive hide/show and collapse/expand actions depending on collection data.
The pages are both dynamic and static, some of them have been published a while ago.
I verified all Collections permissions, all datasets modes to be ‘Read Only’, and ‘Synced’ all datasets.
I have seen all the discussions re. Preview/Published, but did not find a cure to my problem.
Has anyone had similar problem and solved it?
thanks,
Ofer

1 Like

I have this problem too now, on what was working live site before. I show certain elements after a Dataset onReady call. It seems now when the page loads it does not complete the code within my onready function until I press refresh page on the browser.

This was an issue on wix side.
Please check your site now.

It works.
Thank you so much.

@Kanch, There seems to be another problem. Some pages do not load fully the first time and need to be refreshed. Can it be related to the same problem?

Not likely…
Can you send a URL for example?

Try switching between ‘Works’ (Main Menu) and ‘Index’ (‘Works’ Sub-Menu).
https://www.rakefetlevy.com/home

Please check now

Hey, thanks. It seems to work nicely. Plus faster loading. What was the trick?

@ben Hi,
Can you specify what is the issue with the site, and the flow to reproduce it?

Hi,
Can you check what’s happening? The problem of Hide/Show re-appeared.
Thanks,
Ofer

@ben
Binyamin, can you check now and tell me if Hide/Show works for you?
Everything was working fine yesterday night, but Hide/Show is not working again for me as of 5 minutes ago.

Hi @ofer ,
Please check it now. should be fine

same issue here. I implemented floating header with below code, and it works on preview but stopped working when published

export function header1_viewportEnter(event,$w) {
$w(‘#WhiteHeader’).hide();
$w(‘#TransparentHeader’).show();
}

export function header1_viewportLeave(event,$w) {
$w(‘#WhiteHeader’).show();
$w(‘#TransparentHeader’).hide();
}

Thanks @kanch it’s working, thanks.
Is there anything I as a developer should do to prevent this problem recurring?
Ofer

Hi Marina, can you please share the link to your site, and the specific page in the site?

Also, please make sure you implemented it according to this example:

Hi @ofer ,
The issue was on Wix side

@kanch https://turkishcuisine1.wixsite.com/website it should be on all pages

did exactly same way, still doesn’t show on live, but it shows perfectly fine in the preview