Skip to content

[worklets] (bikeshedding time!) import() name is potentially confusing... #374

@bfgeek

Description

@bfgeek

So the import function has been noted as potentially confusing.

Other names which have been discussed at some point are:
loadModule (@adamk)
distributeScript (@annevk)

For additional context the other way to invoke scripts will be via the script tag most likely, e.g.

<script worklet="paint" src="paint.js"></script>

Which is the same as

CSS.paintWorklet.import('paint.js');

From #373 originally.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions