• Stars
    star
    608
  • Rank 73,735 (Top 2 %)
  • Language
    JavaScript
  • License
    Creative Commons ...
  • Created about 10 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Loader Standard

This repository hosts the JavaScript Loader Standard.

Code of conduct

We are committed to providing a friendly, safe and welcoming environment for all. Please read and respect the WHATWG Code of Conduct.

Status

A good chunk of this spec is out of date and is undergoing revision to realign it with Service Worker, the JS Realms API, and the dynamic import() feature.

Loader

Section 15.2 of the ES2015 specification describes the syntax for the new import and export declarations, but does not specify how modules are to be loaded. This repository consolidates work on the ECMAScript module loading semantics with the integration points of Web browsers, as well as Node.js.

The main spec is available at https://whatwg.github.io/loader, generated from the index.bs file.

Building the spec

Building the spec is a two-step process. First, the majority of the conversion work is done via Bikeshed. Second, we run a custom portion of the Ecmarkup pipeline to convert the algorithms from Ecmarkdown syntax into HTML, and to automatically add cross-references. This second step requires io.js to be installed.

Bikeshed

To run Bikeshed locally, install Bikeshed and then run bikeshed spec in the working directory.

Alternately, you can use the command

curl https://api.csswg.org/bikeshed/ -F [email protected] > index.tmp.html

to use Bikeshed's web interface without installing anything.

Ecmarkup

To run the Ecmarkup step, be sure you've done npm install in the root directory, then run

npm run ecmarkupify index.tmp.html index.html

Local Watch

If you have Bikeshed installed locally, and have run npm install, you can try running

npm run local-watch

to start a watcher on index.bs that will update index.html as you edit.

Implementation status

This spec is currently undergoing potentially-large redesigns (see #147 and #149) and is not ready for implementations. You can see one possible way to break down the work in our old roadmap document, but that does not reflect the latest changes.

Various browsers are implementing module syntax parsing and <script type="module"> loading (Firefox, Chrome, WebKit, Edge). However, none of them have begun work on the ideas prototyped here, since they are not ready for implementations yet.

Feedback

Please feel free to open a new issue, or send a pull request!

More Repositories

1

html

HTML Standard
HTML
8,067
star
2

fetch

Fetch Standard
HTML
2,106
star
3

dom

DOM Standard
HTML
1,576
star
4

streams

Streams Standard
HTML
1,350
star
5

url

URL Standard
HTML
532
star
6

webidl

Web IDL Standard
HTML
405
star
7

xhr

XMLHttpRequest Standard
HTML
314
star
8

encoding

Encoding Standard
HTML
273
star
9

console

Console Standard
HTML
263
star
10

fs

File System Standard
HTML
210
star
11

urlpattern

URL Pattern Standard
HTML
157
star
12

notifications

Notifications API Standard
HTML
135
star
13

storage

Storage Standard
HTML
124
star
14

compat

Compatibility Standard
HTML
114
star
15

infra

Infra Standard
HTML
112
star
16

mimesniff

MIME Sniffing Standard
HTML
105
star
17

platform.html5.org

Moved to https://html-now.github.io/
HTML
105
star
18

fullscreen

Fullscreen API Standard
HTML
101
star
19

javascript

Obsolete
HTML
93
star
20

meta

Discussions and issues without a logical home
Python
91
star
21

compression

Compression Standard
HTML
85
star
22

whatwg.org

The WHATWG website and other static resources
72
star
23

web-history

Milestones in the history of the modern Web platform
67
star
24

html-build

Build scripts for https://github.com/whatwg/html
HTML
58
star
25

sg

A place to raise issues with the WHATWG Steering Group
Python
58
star
26

wattsi

Preprocessor for the HTML Standard
Pascal
55
star
27

websockets

WebSockets Standard
HTML
46
star
28

html-differences

HTML differences from HTML4
HTML
43
star
29

meta-theme-color

Obsolete
42
star
30

spec-factory

WHATWG Standard repository templates and infrastructure
Python
35
star
31

books

CSS Books
HTML
29
star
32

participant-data

How we track participants in the WHATWG
29
star
33

quirks

Quirks Mode Standard
HTML
27
star
34

misc-server

Miscellaneous resources for the servers hosting *.whatwg.org domains
Python
22
star
35

domparsing

DOM Parsing and Serialization Standard
JavaScript
22
star
36

figures

CSS Figures
HTML
19
star
37

participate.whatwg.org

JavaScript
17
star
38

testutils

Test Utils Standard
HTML
16
star
39

xref

Obsolete
Python
15
star
40

resources.whatwg.org

Obsolete
14
star
41

old-google-code-html5

Automatically exported from code.google.com/p/html5
Python
12
star
42

build.whatwg.org

Build server for running whatwg/wattsi
JavaScript
11
star
43

whattweetbot-keys

Command-line utility to associate a Twitter account with a Twitter app.
JavaScript
6
star
44

wiki.whatwg.org

Resources used to run the WHATWG Wiki
PHP
6
star
45

js-hosts

Coordination across various JavaScript hosts, beyond web browsers
6
star
46

blog.whatwg.org

WordPress Theme for blog.whatwg.org
PHP
5
star