Found a couple of instances of (window).load() that weren't working with ads, so replaced with (document).ready()
@@ -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' ) );