-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add additional delay JS exclusions #3975
Conversation
|
This PR includes the code change yes, but I don't know if it was QA'ed for this part? |
Here is a video for 3950 So apparently auto exclude smush script only is not enough in this case, here are the rest of the scripts that were delayed and it's affecting the image |
@Mai-Saad This seems to be another case and maybe something else is lazyloaded the image. If you try on a clean install with only Smush, the images must be displayed properly. |
@GeekPress I tried the following:
Screencast.2021-06-02.09.11.13.mp4
|
@Mai-Saad You aren't using the latest Delay JS script version. You are using the one which has the exclusion issue. |
@GeekPress When using additional animations in the Smush for lazy load, they're adding the
The
It should not be delayed also. I think it's pretty safe to exclude it, even if any other solution is sharing the same code, we should remove any |
@piotrbak I'm a little afraid to add a generic exclusion like What about this? We know it should concerns only Smush: |
@GeekPress Yes, I exactly meant that. This script is removing the |
|
@Tabrisrp @GeekPress When using Twenty One theme their script for handling the |
Those are added by the themes, not by Smush, are we going to add an exclusion for each theme using this kind of thing? |
@Tabrisrp To be more specific, the same script is added twice. Once by Smush and once by TwentyOne: There's also similar script in TwentySeventeen for I think that the number of possible scripts that are removing the |
We will have to think about doing things differently, because we are only at 10% and already seeing the exclusion list growing. We know this kind of list is problematic to maintain on the long run, and it's only going to keep needing more and more. |
Yes, the list here will grow rapidly... |
For now, we don't have other choices to add this exclusion to totally improve the compatibility with Smush. |
@piotrbak Does it mean that Smush is adding
and
? 🙄 |
@GeekPress For TwentyTwenty One:
For TwentyTwenty:
From my point of view, we need to exclude both of them. |
@Tabrisrp After having a call with Piotr, we decided to have these exclusions:
|
Additional pattern added to the exclusions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest changes fixed smush. Tested on 2020, 2021, 2019, university, Astra and Virtue
* Fixes #3478 Enable installation through composer v2 (PR #3928) * update woocommerce from wpackagist * update woocommerce paths * use composer v2 in GH actions * Re-add change to remove disable preload fonts when CPCSS is enabled (PR #3927) * remove callback disabling preload fonts * remove associated tests * Stop preload while prewarmup is running (PR #3925) * start automatic preload just after prewarmup finishes its work * Block manual preload till finishing prewarmup * check the RUCSS option enabled along with allow_optimization * fix old tests * [WIP] stop preload with enabling RUCSS * migrate maybe_cancel_preload to RUCSS admin subscriber * fix old tests * remove charset=UTF-8 (PR #3946) * remove charset=UTF-8 * remove charset=UTF-8 from delete * Add unit tests code coverage (PR #3922) * add code coverage command * update incorrect annotations * add cove coverage action * enable xdebug for coverage * Fix failing tests related to adding prewarmup functionality (PR #3949) * Guard our code by checking if table is exists before updating prewarmup * With switch_theme only start scanner when RUCSS is enabled * change trigger event to push * Fixes RUCSS tests: update time to prevent tests failures (PR #3973) * Fixes #3600 add wpstage to staging servers list (PR #3948) * add wpstage to staging servers * remove image optimization when WP_ROCKET_WHITE_LABEL_ACCOUNT (PR #3956) * remove image optimization menu when WP_ROCKET_WHITE_LABEL_ACCOUNT is used * Add Hubspot iframe inline JS exclusion from combine JS (PR #3943) * Fixes #3945 Display warning when WP Meteor is enabled with WP Rocket delay JS (PR #3974) * add new add_plugins_incompatibility() method * add options class to settings class dependencies * updating existing tests * add add_plugins_incompatibility() test file * add unit & integration tests * Fixes #3924 Remove unnecessary more info link in RUCSS pre-warmup copy (PR #3981) * Compatibility with Impreza theme (PR #3972) * Add Impreza inline script pattern to exclude * Add Fixtures Co-authored-by: Rémy Perona <remperona@gmail.com> * Update delay JS script (PR #3971) * update delay JS script * update delay JS fixture * add touchchancel and touchforcechange events * update fixture with new events * Fixes #2876 Remove beacon button when white label is enabled (PR #3965) * remove beacon btn if white label is true * remove ask support button too * Add additional delay JS exclusions (PR #3975) * Add additional exclusions from delay JS * Update fixtures * update plugin version to 3.9.0.1 * update operator in version_compare Co-authored-by: Ahmed Saed <eng.ahmeds3ed@gmail.com> Co-authored-by: mostafa-hisham <mostafa.hisham.mahmoud@gmail.com> Co-authored-by: Natalia Drause <60236665+NataliaDrause@users.noreply.github.com> Co-authored-by: Jonathan Buttigieg <jonathan@wp-media.me>
Description
Add additional delay JS exclusions to solve known issues.
Fixes #3941
Fixes #3950
Fixes #3959
Type of change
How Has This Been Tested?
Checklist: