Functions in a Preloader

1

It turns out that I was designing a preloader on the website that I'm developing, all good. The functions that I put in your code work, by the way I'm using Jquery .

The code is as follows:

$(window).load(function(){
    $("#loading").delay(1500).fadeOut("slow");
});

It turns out that I have not yet been able to identify how to destroy the script.

Let me explain: I want that once my page is run for the first time, it works, but then in each session or subpage that I entered into my site, these functions are executed. What I'm looking for is that you only execute these functions only once, when the page starts on your home page, but for your subpages, I do not want it, it's very annoying that the preloader is loading every time it moves.

If you could help me with this, I would really appreciate it.

I do not know much about programming, but I defend myself somewhat. Greetings and Thank you very much.

    
asked by SamFisher99 23.07.2018 в 14:53
source

0 answers