Skip to content
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

Update DelayJS to v2 #7092

Open
MathieuLamiot opened this issue Nov 6, 2024 · 8 comments · May be fixed by #7093
Open

Update DelayJS to v2 #7092

MathieuLamiot opened this issue Nov 6, 2024 · 8 comments · May be fixed by #7093
Assignees

Comments

@MathieuLamiot
Copy link
Contributor

MathieuLamiot commented Nov 6, 2024

DelayJS v2 must be released on WP Rocket.
The "v2" is currently available on the "v2" branch of the delay JS repo.

Here is the process to automatically update WP Rocket with a DelayJS release: https://www.notion.so/wpmedia/Maintaining-JavaScript-files-98e4112922d540da93e2536866e36fd8?pvs=4#95bb73a9447745228d1c6376e5ad3732

@MathieuLamiot MathieuLamiot added this to the 3.17.3 milestone Nov 6, 2024
@wordpressfan
Copy link
Contributor

I found this PR to merge v2 into develop then we can merge develop into main and release from main but I can see some conflicts, let me check if we can resolve the conflicts from our side or we will need to check with Gael.

@MathieuLamiot
Copy link
Contributor Author

@wordpressfan
Copy link
Contributor

Awesome, so we will ignore conflicts and keep the v2 changes.

@jeawhanlee jeawhanlee self-assigned this Nov 6, 2024
@jeawhanlee jeawhanlee linked a pull request Nov 6, 2024 that will close this issue
@Mai-Saad Mai-Saad self-assigned this Nov 7, 2024
@Mai-Saad
Copy link
Contributor

Mai-Saad commented Nov 8, 2024

@Mai-Saad
Copy link
Contributor

Mai-Saad commented Nov 12, 2024

Regression list

non-regression

@piotrbak
Copy link
Contributor

CC @gmetais

@piotrbak piotrbak removed this from the 3.17.3 milestone Nov 12, 2024
@gmetais
Copy link

gmetais commented Nov 16, 2024

Hi @Mai-Saad,

Could you please describe this issue a bit more?

open page from saved tab loads all script without further interaction (even on 3.17.2.1 of wpr, so maybe browser changes is a factor)
https://wpmediaqa.testrail.io/index.php?/tests/view/44269&group_by=cases:section_id&group_id=4884&group_order=asc

What is a saved tab? Is it related to the fact that DelayJS intentionally loads scripts when the page visibility is hidden?

@Mai-Saad
Copy link
Contributor

@gmetais Here is a video about the saved tab (usually scripts aren't delayed there)
saved pages.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants