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

jQuery(function ($) { jQuery(function ($) {
"use strict"; "use strict";


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

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


/* ========================================================================= */ /* ========================================================================= */
/* Post image slider /* Post image slider
/* ========================================================================= */ /* ========================================================================= */
// End Jquery Function // End Jquery Function




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

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



/* ========================================================================= */ /* ========================================================================= */
/* Animated section /* Animated section
/* ========================================================================= */ /* ========================================================================= */


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

Loading…
Cancel
Save