Safari vs. Chrome

Hi Jonathan,

Thank you for your time. When I use

$w.onReady(() => {
setTimeout(() => {
waitForLoading();
}, 2000);
});
function waitForLoading() {
setTimeout(() => {
$w(‘#gallery4’).show(‘FadeIn’);
}, 2000);
}

Or even when I try to find different option and use this code, safari does not show the website and reports the issue. Chrome works good ( try to use landing page as pre-loader)

import wixLocation from ‘wix-location’; $w.onReady(function () { setTimeout(() => { wixLocation.to(“/main”); }, 10000); });

With Lightbox is not working either. I have tried everything which could solve my problem.

Thank you!
Kind regards,
Petra