Skip to content

v0.1.3

Compare
Choose a tag to compare
@regisphilibert regisphilibert released this 28 Jan 20:08
· 25 commits to main since this release

More script control!

Before this release, every script tag printed by HUGE/Scripts was using defer and crossorigin="anonymous". While this is a good practice and will be satisfactory for most use cases, it could break some. HUGE/Scripts keeps those as defaults but introduces settings to control them.

Load strategy

User can now choose defer, async or none to omit it.

Crossorigin

User can choose any string or none to omit the attribute altogether.

Custom Attributes

Any script tag can now sport an infinite number of attributes data-whatever="that".

This can be useful to comply with certain libraries or overwrite the type="text/javascript" attribute pending client accepts GDPR or other privacy toggle.

Check the Wiki's HUGE/Scripts page for more information.

What's Changed

Full Changelog: v0.1.2...v0.1.3