Wix site code not running

Making a site where at a page load a scrollto() runs, placed code on site section since it will need to run on every page, but to my frustration it seems to randomly choose between either running or not (Any of the pages suddenly it just does not run the scrollTo() on load).

$w.onReady(function () {
    $w('#columnStrip1').scrollTo()
    .then( ( ) => {
        console.log("Done with scroll");
        scrolled = true;
    } );
});

#scrollTo()
Its not like its any advanced code, i simply want it to go to specific section on all pages
(yes columnStrip1 exist on all pages)

Assuming that you declared the “scrolled” variable somewhere and that you do have an element of property Id “columnStrip1”, it’s supposed to work.
Unless you have some page transition animation that is in conflict with this scrollTo.