Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#410·barba

CSS file doesn't load on page transition

Author: Damiano31Created Jun 19, 2019Updated Sep 6, 2023
Labelsv2@barba/headfeature

Hi, I have a problem with the css and js files. I would like to use different style sheets and scripts on the various pages. when I open the page everything normally works, but when I change the page using the transition it is not loaded. How can I solve it?

for example in the contact page i want to use contact.css. contact.css is used only in this page. when I access the page directly the css works correctly but when i came from (for example) index.html that doesn't have contatti.css the style doesn't load.

Source: barbajs/barba

View original on GitHubView discussion on GitHub