Javascripts not properly loading when using Link Type Page

Hi guys,
As the title mentions, my pages doesn’t register what I’ve put inside of my javascript when I use the Link Type Page. On refresh it works tho. I’m using the script that @Pakic provided before, which only loads elements if a page is in the route :smile:

if (
        data.page.Get('route') === '/da/div/thevitaone' || 
        data.page.Get('route') === '/da/div/thevitaone/how' || 
        data.page.Get('route') === '/da/div/thevitaone/madeindk' || 
        data.page.Get('route') === '/da/div/thevitaone/skin' || 
        data.page.Get('route') === '/da/div/thevitaone/hair-nails' || 
        data.page.Get('route') === '/da/div/thevitaone/skin-hair-nails' || 
        data.page.Get('route') === '/da/div/thevitaone/skinvitamins' || 
        data.page.Get('route') === '/da/div/thevitaone/hairnailsvitamins' || 
        data.page.Get('route') === '/da/div/thevitaone/howto'
    ) {

Here’s a video example Watch Screen Recording 2024-03-20 at 11.03.30 | Streamable

image
Here on top, set event “Page on Ready”

Ah yes that works! Thank you so much Pakic :smile: :pray: