Infinite preloader

Asked

Viewed 105 times

0

I applied a preloader to a website but he "won’t hang up" so to speak.

$(window).on('load', function () {
    $('#preloader .inner').fadeOut();
    $('#preloader').delay(350).fadeOut('slow'); 
    $('body').delay(350).css({'overflow': 'visible'});
});
<div id="preloader">
    <div class="inner">
       <div class="bolas">
          <div></div>
          <div></div>
          <div></div>                    
       </div>
    </div>
</div>
    

An error that appears is:

preloader.js:2 Uncaught Referenceerror: $ is not defined prelat.js:2

1 answer

0


You are using a code that needs the Jquery library and did not add it.

Add it before this script you need it; you can use a CDN font

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  • Thank you very much! Solved the problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.