• Resolved Gyurmey

    (@gyurmey)


    Hey, thanks for the great plugin!

    Is it possible for CSS/JS to load on the frontend only when an animation is used? Now it always loads whether there is an animation or not.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Added in 1.1.2, you should find an option for it here:

    Note: if you’re not using a Full Site Editing theme then the blocks in post content are rendered after styles have already been added to the head, therefore the AOS stylesheet will end up at the end of the body element, which may cause the animated element to be visible before animating in.

    It’s also possible to simply disable the assets using the filters here and only enable them on the pages you need.

    Thread Starter Gyurmey

    (@gyurmey)

    Thank you very much! Now it works great!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Loading assets conditionally (CSS/JS)’ is closed to new replies.