hello, I’m developing a theme for my website and I would like to use specific javascript on my home page ( not index.hbs ) a landing page and I have this code in my default.hbs above ghost_head .
The code works nicely on the homepage but when I navigate to other pages the index.js still loads and the page.js does not. However when I reload the page it works just fine ??
I have also tried to create de specific default-home.hbs but somehow the index.js still shows up ! Is it a caching issue ?
BTW I use the ghost starter theme from github and npm run dev so there is a livereload.js code ( just saying if this could be related )
I think I might know where this is coming from inside the index.js there is swup.js and i’m no js expert but since it’s for page transition. Swup.js might be preloading the links on the page ?
But since this index.js comes into conflict in my post.hbs ( comments and lite-youtube.js ) are not loading on the first try only after reload I don’t get it !
I’ve tried to load the index.js directly into the homepage and removing the default but still the same problem
BTW @Cathy_Sarisky I got the exclude=“card_assets” from your blog ;) thanks for sharing that !!