Infinite Preloader
I applied a preloader on a site but it "doesn't shut down" 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 at preloader.js: 2
0
Author: Daniel Mendes, 2020-06-06
1 answers
You are using code that needs the jQuery library and did not add it.
Add it before this script that needs it; you can use a CDN font
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
0
Author: Leonardo Negrão, 2020-06-06 01:55:28