Dara: Fix related to #108

Found a couple of instances of (window).load() that weren't working with ads, so replaced with (document).ready()
This commit is contained in:
Chris Runnells 2018-05-22 10:21:57 -10:00
parent 1d8146c6d8
commit 5f56076846
2 changed files with 2 additions and 4 deletions

View file

@ -16,8 +16,6 @@
} );
}
$(document).on( 'ready', function() {
$(window).on( 'load', loadFlexslider );
} );
$(document).on( 'ready', loadFlexslider );
} )(jQuery);

View file

@ -3,7 +3,7 @@
*/
( function( $ ) {
$( window ).on( 'load', function() {
$( document ).on( 'ready', function() {
setTimeout( function(){
if ( typeof( Event ) === 'function' ) {
window.dispatchEvent( new Event( 'resize' ) );