S
S
Snatch082020-02-17 11:56:00
css
Snatch08, 2020-02-17 11:56:00

How to run jquery function as fast as possible?

How to run jquery function as fast as possible?

Faster than this:

$(document).ready(function(){
    Preloader();
});

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Odisseya, 2019-06-14
@ivan00007

For example, svg with arc path and animation:

B
Bepack Green, 2020-02-17
@Snatch08

in head
Preloader();
But, you understand that you have $(document).ready waiting for the entire DOM to load, and what does this mean and why?

F
FeST1Val, 2020-02-17
@FeST1Val

I'm wondering what do you want to do then? If it is a preloader, then it is first shown in HTML, and then, after being fully loaded through JS, it is hidden. And not vice versa.

S
Snatch08, 2020-02-17
@Snatch08

<head>
    <script>
        Preloader();
    </script>
</head>

So?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question