You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in during the review of #398 (comment) our scripts would be more async and defer friendly. This could let us use the latest WP Script Modules API.
This could let us use a bit more modern standard, and write the code closer to the one actually executed in the browser.
Unfortunately, for now, we cannot switch yet.
The API will be available in WP 6.5, which is not released yet, and we need to support older versions.
WP API does not support inline modules. And we currently end data using inline scripts. So we would either need to change that approach, or wait for the support.
The API does not support classic script dependencies, so we need to depend on classic inline script data (or change the approach). Most importantly, we depend on google-tag-manager, which needs to stay there.
Describe alternatives you've considered
Use classic scripts as we use today.
Acceptance criteria
Unknowns
Out of bounds/rabbit holes
Event tracking
The text was updated successfully, but these errors were encountered:
User story
As discussed in during the review of #398 (comment) our scripts would be more async and defer friendly. This could let us use the latest WP Script Modules API.
This could let us use a bit more modern standard, and write the code closer to the one actually executed in the browser.
Unfortunately, for now, we cannot switch yet.
google-tag-manager,
which needs to stay there.Describe alternatives you've considered
Use classic scripts as we use today.
Acceptance criteria
Unknowns
Out of bounds/rabbit holes
Event tracking
The text was updated successfully, but these errors were encountered: