Is your enhancement related to a problem? Please describe.
We currently are parsing the script handle out of the id attribute for script tags. This could be made more ergonomic if we added a data-wp-handle attribute that only contained the handle, similar to how delayed inline scripts now get data-wp-deps as of #67.
Related to #68, which introduces data-wp-strategy.
Note that the attributes may need to be added after the script_loader_tag filter applies, so as to ensure they are always present. Otherwise they could break our delayed-inline-script-loader logic.
cf. https://github.com/10up/wordpress-develop/pull/67/files#r1213241271 and https://github.com/10up/wordpress-develop/pull/67/files#r1213705552
Designs
No response
Describe alternatives you've considered
No response
Code of Conduct
Is your enhancement related to a problem? Please describe.
We currently are parsing the script handle out of the
idattribute forscripttags. This could be made more ergonomic if we added adata-wp-handleattribute that only contained the handle, similar to how delayed inline scripts now getdata-wp-depsas of #67.Related to #68, which introduces
data-wp-strategy.Note that the attributes may need to be added after the
script_loader_tagfilter applies, so as to ensure they are always present. Otherwise they could break our delayed-inline-script-loader logic.cf. https://github.com/10up/wordpress-develop/pull/67/files#r1213241271 and https://github.com/10up/wordpress-develop/pull/67/files#r1213705552
Designs
No response
Describe alternatives you've considered
No response
Code of Conduct