- Fixed a bug when multiple calls to
update_script_tag()
could cause attributes to be added multiple times.
- Added possibility for
nomodule
andtype="module"
attributes. - Updated usage to use pipes instead of
--suffix
. Use|async
instead of--async
and|defer
instead of--defer
. The old suffixes are still supported. - Added new function
update_script_tag()
that can be used for all cases. Thescript_loader_tag_method()
can still be used, butupdate_script_tag()
is recommended. - Updated README.
- Added function
script_loader_tag_method()
to change how an already enqueued script is loaded.