Skip to content

script elements #23

Open
Open
@cramforce

Description

@cramforce

We need to design/decide what adding a script elements via worker-dom does. This may also need to be configurable.

Currently it would just do it and execute the script on the main thread. Which would be right for some use cases. But for other cases, such as when using code splitting, one might want to run the script inside the worker.

In that case, we may "neuter" the script element and instead use importScript to load the script. I believe that importScript is sync, so we may need to instead fetch the script and then call importScript with a blob (is that supported?)

Metadata

Metadata

Labels

hydrationIssue with Hydration of initial DOM content.mutationIssue with Mutation post Hydration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions