Internet > Web Hosting & Web Design

jquery - moving from 1.10.2 to 3.3.1

(1/1)

chenks:
anyone familiar with using jquery?

i had a page that used jquery min v1.10.2.
as the page could sometimes that a little while to fully load (pulling records from a database), i set a simple loader screen that sat on top until the page had loaded then disappeared to show the results below - worked very well.


--- Code: ---$(window).load(function() {
// Animate loader off screen
$(".se-pre-con").fadeOut("slow");;
});
--- End code ---

with this inside the content div


--- Code: ---<div class="se-pre-con"></div>
--- End code ---

i've moved the page over to using jquery min 3.3.1 and now the loader script doesn't work.
it hides the content as normal, but doesn't fadeout once it has completed. i can tell it has completed as the scroll bar appear and the loading icon on the browser stops.

so why does it not work with 3.3.1 but does work with 1.10.2 ?

chenks:
it appears that


--- Code: ---$(window).load(function() {
--- End code ---
has to change to

--- Code: ---$(window).on("load",function() {

--- End code ---

Navigation

[0] Message Index

Go to full version