Show Load In Animation only once


I’m trying to realize an a load in animation which only loads once.
I’ve used the finsweet session cookie/cookie solution but every time, the user goes back to the homepage, the animation shows up for like half a second before the script is done and applies the changes to the class.

Can anyone help me out here?

Here is my site Read-Only: [Link](