| @@ -120,8 +120,11 @@ | ||
| 120 | 120 | // The vendors' own install snippets are INLINE (no src at all), |
| 121 | 121 | // so the src sweep above never sees them; this one parks an |
| 122 | 122 | // inline body that names a known third-party host. |
| 123 | 123 | add_filter( 'xspeed_cache_final_html', array( Minify_Filters::class, 'delay_inline_snippets' ), 21 ); |
| 124 | + // Elementor's entrance-animation elements are hidden until its | |
| 125 | + // frontend script runs; when that script is delayed, show them. | |
| 126 | + add_action( 'wp_head', array( Minify_Filters::class, 'print_entrance_animation_reveal' ), 1 ); | |
| 124 | 127 | } |
| 125 | 128 | |
| 126 | 129 | // Everything above honors data-no-optimize / data-no-minify, but |
| 127 | 130 | // only sees markers stamped before priority 30. Borlabs Cookie |
| @@ -149,8 +152,12 @@ | ||
| 149 | 152 | // stay render-blocking — sweep the finished buffer for the known |
| 150 | 153 | // font-CSS hosts. Baked into the cache file, so it replays on |
| 151 | 154 | // static hits where PHP never boots. |
| 152 | 155 | add_filter( 'xspeed_cache_final_html', array( Minify_Filters::class, 'async_raw_font_css_links' ), 22 ); |
| 156 | + // Holds CSS transitions while async stylesheets replace the | |
| 157 | + // critical CSS. Runs after every script pass so its own | |
| 158 | + // inline script is never deferred or delayed. | |
| 159 | + add_filter( 'xspeed_cache_final_html', array( Minify_Filters::class, 'hold_transitions_for_async_css' ), 26 ); | |
| 153 | 160 | } |
| 154 | 161 | |
| 155 | 162 | /* |
| 156 | 163 | * CSS combining runs on the FINISHED HTML, not the enqueue queue. |