← Back to release summary

Import Text (Text Modules)

Category
JavaScript
Type
Chromium catches up
Status
Proposed (Chrome Proposed)
Intent stage
None

WPT details: https://wpt.fyi/results/html/semantics/scripting-1/the-script-element/text-module?label=experimental&label=master&aligned

Summary

A TC39 proposal to add module `import … with { type: "text" }` statements to JavaScript. The import attribute loads text data as a string value.

Standards & signals

Ecosystem

Explainers: https://github.com/tc39/proposal-import-text https://github.com/whatwg/html/pull/11933 https://github.com/w3c/webappsec-csp/pull/794

View on chromestatus.com