bbc/gel

Separate JS

Opened this issue · 1 comments

The JS is all compiled into one file, which makes it hard for readers to adjust / experiment with the code.

As crude as it may sound to an engineer, I think inlining/embedding the JS for each reference implementation is the best idea after all.

The law of Optimising for Cacheability says keep it all in a rarely modified separate request. Which is why it was originally done that way. But I think we don't really care about that as much as optimising for learnability. So yep, I agree.