Browse Source

window load inside ready state will not always trigger

Issue since jquery 3. More info can be found here:

https://github.com/jquery/jquery/issues/3194
tags/v1.0.0
djro 6 years ago
parent
commit
399f22fb07
No account linked to committer's email address
1 changed files with 12 additions and 11 deletions
  1. 12
    11
      assets/js/script.js

+ 12
- 11
assets/js/script.js View File

@@ -1,16 +1,6 @@
jQuery(function ($) {
"use strict";

/* ========================================================================= */
/* Page Preloader
/* ========================================================================= */

// Preloader js
$(window).on('load', function () {
$('#preloader').fadeOut(700);
});


/* ========================================================================= */
/* Post image slider
/* ========================================================================= */
@@ -169,6 +159,17 @@ jQuery(function ($) {
// End Jquery Function


/* ========================================================================= */
/* Page Preloader
/* ========================================================================= */

// Preloader js
$(window).on('load', function () {
$('#preloader').fadeOut(700);
});



/* ========================================================================= */
/* Animated section
/* ========================================================================= */
@@ -308,4 +309,4 @@ function initialize() {

// Check init google maps only if "google" has been defined.
if("google" in window)
google.maps.event.addDomListener(window, "load", initialize);
google.maps.event.addDomListener(window, "load", initialize);

Loading…
Cancel
Save