Skip to content

Commit

Permalink
i18n loader script: load script in the footer and defer it. (#38929)
Browse files Browse the repository at this point in the history
* i18n loader script: load script in the footer and defer it.

Related conversation: p55Cj4-3qL-p2

* Add 'add_data' mock

* Remove defer strategy

It won't be needed:
Automattic/jetpack#38929 (review)

* Also add react-jsx-runtime to be loaded in footer

See Automattic/jetpack#38929 (review)

Co-authored-by: Brad Jorsch <[email protected]>

* Add test to ensure add_data is being called

See Automattic/jetpack#38929 (comment)

* Update changelog

---------

Co-authored-by: Brad Jorsch <[email protected]>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/10469831354

Upstream-Ref: Automattic/jetpack@63cd636
  • Loading branch information
jeherve authored and matticbot committed Aug 20, 2024
1 parent 2e36d48 commit fc444ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-assets": "^2.3.2",
"automattic/jetpack-assets": "^2.3.3-alpha",
"automattic/jetpack-blaze": "^0.22.5-alpha",
"automattic/jetpack-compat": "^3.0.2",
"automattic/jetpack-device-detection": "^2.1.3",
Expand Down

0 comments on commit fc444ce

Please sign in to comment.