-
Notifications
You must be signed in to change notification settings - Fork 216
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 Delay JS script to latest version #4988
Comments
Scope a solution ✅In addition to merging the 3 PRs and minifying the script, the following needs to happen in the In The related automated tests will need to be updated to match the changes. Estimate the effort ✅Effort [S] |
Hello, I've added a commit (https://github.com/wp-media/delay-javascript-loading/pull/24/commits/ead18c3586b344c2da70f72aa0f61086ab51e0a9) on the branch Can you please merge it with the rest? |
@jeawhanlee Could you update the script and the plugin's branch? @gmetais Thank you! 🥇 |
@piotrbak Ok |
* Transform src attribute to data-rocket-src * Update fixture * Remove double quote from needle * Update delay js script * Update needle for precise matching * Added conditional to check that replacement is not added to script content * Update fixtures * Update fixtures * Return Typehint * Change to case-insensitive * Fixes integrity attribute error on delay js script * Check if script has unnecessary white space and treat as single script * Updated fixtures for testcase with script tags having unneccessary white spaces * Removed strict conditional check * Script Update fix for (#34) * Updated integration test * Update delayjs script * Update fixture * Add data-rocket-src to script tags with comment as content * Replace all src attribute of external script with data-rocket-src
Blocking the issue till we have an answer here: |
* Transform src attribute to data-rocket-src * Update fixture * Remove double quote from needle * Update delay js script * Update needle for precise matching * Added conditional to check that replacement is not added to script content * Update fixtures * Update fixtures * Return Typehint * Change to case-insensitive * Fixes integrity attribute error on delay js script * Check if script has unnecessary white space and treat as single script * Updated fixtures for testcase with script tags having unneccessary white spaces * Removed strict conditional check * Script Update fix for (#34) * Updated integration test * Update delayjs script * Update fixture * Add data-rocket-src to script tags with comment as content * Replace all src attribute of external script with data-rocket-src * Validate type attributes * Updated allowed types * Updated tests * make quantifier lazy * Resolved conflicts * Updated method to replace script * Updated fixtures * Updated method * Updated script and test * Updated delayjs script * refactor delayjs HTML code to use less number of regexes * fix last test * fix unit tests * fix phpcs * Remove invalid js mime type * add drop resources table code back Co-authored-by: Ahmed Saeed <eng.ahmeds3ed@gmail.com>
Is your feature request related to a problem? Please describe.
We have 3 fixes left on the Delay JS script:
Describe the solution you'd like
Merge all PR to create a new version of the script.
Additional context
PR 24 needs some change inside WP Rocket too.
The text was updated successfully, but these errors were encountered: