3.8 - JavaScript deferring breaks Smart Slider 3 #3421
Labels
3rd party compatibility
Issues related to 3rd party compatibility like theme, plugin or hosting
effort: [XS]
< 1 day of estimated development time
module: file optimization
type: bug
Indicates an unexpected problem or unintended behavior
Milestone
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
With WP Rocket 3.8, NOT deferring
jQuery
results into Smart Slider's inline JavaScript changing scope:The solution is either to prevent
jQuery
from being deferred or exclude the inline JavaScript from being deferred:To Reproduce
Steps to reproduce the behavior:
jQuery
library.Expected behavior
The slider should be displayed.
Additional context
Should we add an array to store these exclusions, the way we do with inline JavaScript to prevent the
cache dir size
issue?wp-rocket/inc/Engine/Optimization/DeferJS/DeferJS.php
Line 121 in f44dd60
Related ticket: https://secure.helpscout.net/conversation/1370346121/223946
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: