Update Script Tag Behavior #628
Labels
priority-2-moderate
Should be resolved on a reasonable timeline.
type-feature
About new capabilities
Milestone
Current Situation
Currently the script tag always expects scripts to be structured as a effect hook...
Proposed Actions
The script tag should behave as a normal script by default
Utilize one of the following designs
destructor="..."
, which is the name of a JavaScript function within this script's scope that will be called on unloadreturns_destructor
to denote the script is a singleton function with a destructorWork Items
src=...
tag, if it does not existThe text was updated successfully, but these errors were encountered: