Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Problem with jetpack Lazy Images Load script and woocommerce cart

$
0
0

Replies: 0

Hi,

I disable function jetpack site accelerator and lazy loading for images on my jetpack setting page, however, there is still an inline js script like below inside my resource load,

<script type='text/javascript' id='wc-cart-fragments-js-after'>
		jQuery( 'body' ).bind( 'wc_fragments_refreshed', function() {
			var jetpackLazyImagesLoadEvent;
			try {
				jetpackLazyImagesLoadEvent = new Event( 'jetpack-lazy-images-load', {
					bubbles: true,
					cancelable: true
				} );
			} catch ( e ) {
				jetpackLazyImagesLoadEvent = document.createEvent( 'Event' )
				jetpackLazyImagesLoadEvent.initEvent( 'jetpack-lazy-images-load', true, true );
			}
			jQuery( 'body' ).get( 0 ).dispatchEvent( jetpackLazyImagesLoadEvent );
		} );

I reenable and disable both the jetpack site accelerator and lazy loading for images many times and clearing all my cache, but it still there. I don’t know if this is a bug or whatever that produced by jetpack with Woocommerce script fragment js, I want to remove this inline js script due to conflict with my theme optimization plugin, please your help.


Viewing all articles
Browse latest Browse all 59525

Trending Articles