Problem with jetpack Lazy Images Load script and woocommerce cart
-
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.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Problem with jetpack Lazy Images Load script and woocommerce cart’ is closed to new replies.