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:
parent
1d8146c6d8
commit
5f56076846
2 changed files with 2 additions and 4 deletions
|
@ -16,8 +16,6 @@
|
|||
} );
|
||||
}
|
||||
|
||||
$(document).on( 'ready', function() {
|
||||
$(window).on( 'load', loadFlexslider );
|
||||
} );
|
||||
$(document).on( 'ready', loadFlexslider );
|
||||
|
||||
} )(jQuery);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
( function( $ ) {
|
||||
|
||||
$( window ).on( 'load', function() {
|
||||
$( document ).on( 'ready', function() {
|
||||
setTimeout( function(){
|
||||
if ( typeof( Event ) === 'function' ) {
|
||||
window.dispatchEvent( new Event( 'resize' ) );
|
||||
|
|
Loading…
Reference in a new issue