Skip to content

Add type="module" and nomodule attributes to WordPress scripts

Notifications You must be signed in to change notification settings

kylereicks/wp-script-module-nomodule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Add type="module" and nomodule attributes to WordPress scripts

wp_script_add_data( 'script-handle', 'type', 'module' );
wp_script_add_data( 'script-handle', 'nomodule', true );

About

Add type="module" and nomodule attributes to WordPress scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages