5.5.0

2023-11-15 Feature3 Tweak8 Fix7

Features

  • Added compatibility with the Delay JS Execution functionality of WP Rocket & Perfmatters plugins.
  • Added a new iconic_woothumbs_slide_classes filter to add custom classes to slide containers.
  • Added setting to switch between Anticipated (default) and On Demand lazy loading behaviour in slider mode.

Tweaks

  • Load Plyr video poster images on demand instead of preloading to improve page loading performance.
  • Improvements to lazy loading performance in slider mode to load less images.
  • Variation slide indexes now persist when the parent gallery only has one image, but variations have multiple images.
  • Modified CSS to prevent an initial gallery flash when JS takes a while to load.
  • Refactored the Plyr YouTube/Vimeo embed implementation to use
    rather than elements to improve page loading performance.
  • Only initialise Plyr for videos that are inside visible containers to avoid conflicts.
  • Recalculate the carousel height after Plyr videos initialise to improve compatibility.
  • Plyr videos that exist in cloned slides are no longer initialised to improve page loading performance.

Fixes

  • Resolved an issue with the rendering of some thumbnail image HTML attributes causing odd behaviour.
  • Prevented a gallery flash during initial load when default variations are set.
  • Always return an absolute integer for image data height values even if height is unavailable.
  • Prevented duplication of photoswipe gallery instances causing some fullscreen inconsistencies.
  • Autoplay now correctly triggers in fullscreen if navigating back to a previously played video.
  • Check for a valid product instance when deleting cache entries to avoid edge case errors in certain admin screens.
  • Ensure assets are enqueued when the WooThumbs block is added directly to a page rather than via a shortcode.