Performance issue related to featured image srcset
-
Hey guys,
We’re using a smooth scrolling script and since WP introduced the srcset attribute we’re experiencing abnormal lagging.
If I go into the console and remove the srcset attribute related code, I get a consistant smooth scrolling across the page. If I refresh the page, the lagging will occur again.
Here’s what our featured image code looks like With srcset attributes :
<img width="1000" height="1000" src="https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-710x710.jpg" class="attachment-entry size-entry wp-post-image" alt="Flexfit-Baseball-Cap-Black-Front" title="Flexfit-Baseball-Cap-Black-Front" srcset="https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-150x150.jpg 150w, https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-300x300.jpg 300w, https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-100x100.jpg 100w, https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-710x710.jpg 710w, https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front.jpg 1000w" sizes="(max-width: 400px) 100vw, 400px" data-o_src="https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front.jpg" data-o_title="Flexfit-Baseball-Cap-Black-Front" data-o_alt="Flexfit-Baseball-Cap-Black-Front" data-o_srcset="https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-150x150.jpg 150w, https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-300x300.jpg 300w, https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-100x100.jpg 100w, https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-710x710.jpg 710w, https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front.jpg 1000w" data-o_sizes="(max-width: 1000px) 100vw, 1000px">
Without srcset attributes :
<img width="1000" height="1000" src="https://dsfrc4icyn4oa.cloudfront.net/wp-content/uploads/2015/09/08160916/Flexfit-Baseball-Cap-Black-Front-710x710.jpg" class="attachment-entry size-entry wp-post-image" alt="Flexfit-Baseball-Cap-Black-Front" title="Flexfit-Baseball-Cap-Black-Front">
Note that the thumbnails are causing the same problem, although it’s slightly less noticeable (which I attribute to the fact images are smaller).
Keeping a smooth user experience is as important as saving bandwidth and getting the page to load as fast as possible. Is there something we can do about this?
URL : https://nationhats.staging.wpengine.com/shop/hats/6-panel/retro-flexfit-cap-custom/
Thanks!
Kind regards,
B### WordPress Environment ### Home URL: https://nationhats.staging.wpengine.com Site URL: https://nationhats.staging.wpengine.com WC Version: 2.5.2 Log Directory Writable: ? /nas/content/staging/nationhats/wp-content/uploads/wc-logs/ WP Version: 4.4.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: ? Language: en_US ### Server Environment ### Server Info: Apache PHP Version: 5.5.9-1ubuntu4.14 PHP Post Max Size: 100 MB PHP Time Limit: 3600 PHP Max Input Vars: 1000 SUHOSIN Installed: – MySQL Version: 5.6.28 Max Upload Size: 50 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 2.5.2 : woocommerce_sessions: ? woocommerce_api_keys: ? woocommerce_attribute_taxonomies: ? woocommerce_termmeta: ? woocommerce_downloadable_product_permissions: ? woocommerce_order_items: ? woocommerce_order_itemmeta: ? woocommerce_tax_rates: ? woocommerce_tax_rate_locations: ? ### Active Plugins (63) ### Query Monitor: by John Blackbourn – 2.8.1 WooCommerce Magic Grid MOD: by Proword – 4.2 WooCommerce TM Extra Product Options custom HTML-PHP: by themecomplete – 1.0 X – Olark Integration: by Themeco – 1.0.0 Compress JPEG & PNG images: by TinyPNG – 1.7.0 Yoast SEO: by Team Yoast – 3.0.7 X – Google Analytics: by Themeco – 1.0.0 X – Facebook Comments: by Themeco – 1.0.1 WooThemes Helper: by WooThemes – 1.5.9 WooCommerce UPS Shipping: by WooThemes – 3.1.2 WooCommerce TM Extra Product Options: by themecomplete – 4.2.3.4 WooCommerce Stripe Gateway: by Mike Jolley – 2.6.8 WooCommerce Social Login: by WooThemes / SkyVerge – 1.7.2 WooCommerce Shipment Tracking: by WooThemes – 1.4.3 WooCommerce Product Image Flipper: by jameskoster – 0.2.1 WooCommerce Product Filter: by Mihajlovic Nenad – 5.3.3 WooCommerce Print Invoice & Delivery Note: by Triggvy Gunderson – 4.1.5 WooCommerce Order Status Manager: by WooThemes / SkyVerge – 1.4.1 Ninja Popups: by ArsCode – 4.2.6 WooCommerce Instagram: by WooThemes – 1.0.7 WooCommerce Dynamic Pricing & Discounts: by RightPress – 1.0.18 Woocommerce Advanced Bulk Edit: by George Iron – 3.7 Pretty Link Pro: by Caseproof – 1.6.8 Groups Notifications - MOD: by itthinx – 1.1.2 NH Donations: by ThemePlugger – 1.0.0 White Label Login for WordPress: by (RightHere LLC) – 1.1.3.66134 Slider Revolution: by ThemePunch – 5.1.6 Admin Menu Editor: by Janis Elsts – 1.5 Amazon Web Services: by Delicious Brains – 0.3.4 WP Offload S3: by Delicious Brains – 0.9.12 WPBakery Visual Composer: by Michael M - WPBakery.com – 4.9.2 Ultimate Addons for Visual Composer: by Brainstorm Force – 3.15.2 UberMenu 3 - The Ultimate WordPress Mega Menu: by Chris Mavricos SevenSpark – 3.2.2.1 UberMenu Icons: by Chris Mavricos SevenSpark – 3.2.2 WooCommerce: by WooThemes – 2.5.2 WooCommerce WooCart Pro: by Festi – 2.0.0 WooCommerce Smart Coupons: by WooThemes – 3.0.10 Global Content Blocks: by Dave Liske – 2.1.5 Essential Grid: by ThemePunch – 2.0.9.1 Design Approval System: by SlickRemix – 4.1.1 Alpine PhotoTile for Instagram: by the Alpine Press – 1.2.7.7 Groups: by itthinx – 1.10.1 Visual Composer Extension - Groups: by Max Ziebell – 1.0 Formidable: by Strategy11 – 2.0.22 Formidable AWeber: by Strategy11 – 2.01 Formidable Locations: by Strategy11 – 2.0.01 Fancy Product Designer: by Rafael Dery | radykal.de – 2.2.4 Easy Social Share Buttons for WordPress: by CreoApps – 3.4.1 Affiliates Enterprise: by itthinx – 2.14.1 Affiliates WooCommerce Integration MOD: by itthinx – 1.6.0 Affiliates Stats Filters Example: by itthinx – 1.0.0 Affiliates Products: by itthinx – 1.5.1 Affiliates Formidable Integration: by itthinx – 1.1.0 Affiliates Permanent: by itthinx – 1.3.0 Affiliates Products Process Tiers: by itthinx – 1.0.0 Affiliates Set New User Referrer: by George Tsiokos – 1.0 Affiliates WooCommerce Views: by itthinx – 1.0.0 Gravity Forms: by rocketgenius – 1.9.16 Gravity Forms Survey Add-On: by Rocketgenius – 2.5.4 Gravity Forms Coupons Add-On: by rocketgenius – 2.2 Akismet: by Automattic – 3.1.7 Cornerstone: by Themeco – 1.1.3 Plugin Organizer: by Jeff Sterup – 6.0.4 ### Settings ### Force SSL: – Currency: CAD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 ### API ### API Enabled: ? API Version: 3.1.0 ### WC Pages ### Shop Base: #10057 - /shop/ Cart: #5 - /cart/ Checkout: #6 - /checkout/ My Account: #7 - /my-account/ ### Taxonomies ### Product Types: external (external) grouped (grouped) simple (simple) variable (variable) ### Theme ### Name: X - Child Theme: Icon Version: 1.0.1 Author URL: https://theme.co/ Child Theme: ? Parent Theme Name: X Parent Theme Version: 4.3.4 Parent Theme Author URL: https://theme.co/ WooCommerce Support: ? ### Templates ### Overrides: x/woocommerce/cart/cart-empty.php x/woocommerce/cart/cross-sells.php x-child-icon/woocommerce/checkout/review-order.php x/woocommerce/loop/loop-end.php x/woocommerce/loop/loop-start.php x/woocommerce/loop/pagination.php x-child-icon/woocommerce/myaccount/my-account.php x/woocommerce/notices/error.php x/woocommerce/notices/notice.php x/woocommerce/notices/success.php x-child-icon/woocommerce/order/order-details-item.php x-child-icon/woocommerce/order/order-details.php x/woocommerce/single-product/product-image.php x/woocommerce/single-product/product-thumbnails.php x-child-icon/woocommerce/single-product/related.php x/woocommerce/single-product/tabs/tabs.php x-child-icon/woocommerce/single-product/up-sells.php x/woocommerce/single-product-reviews.php
- The topic ‘Performance issue related to featured image srcset’ is closed to new replies.