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 ff3a986 commit 9c42c06
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 @@ -6,7 +6,7 @@
"require": {
"php": ">=7.0",
"automattic/jetpack-a8c-mc-stats": "^2.0.1",
"automattic/jetpack-assets": "^2.3.2",
"automattic/jetpack-assets": "^2.3.3-alpha",
"automattic/jetpack-connection": "^2.12.2-alpha",
"automattic/jetpack-device-detection": "^2.1.3",
"automattic/jetpack-logo": "^2.0.3",
Expand Down

0 comments on commit 9c42c06

Please sign in to comment.