distillpub / post--communicating-with-interactive-articles

https://distill.pub/2020/communicating-with-interactive-articles
Creative Commons Attribution 4.0 International
38 stars 15 forks source link

video and component optimizations #14

Closed mathisonian closed 4 years ago

mathisonian commented 4 years ago

This PR optimizes the page size a bit, to the point where I don't think there are any show stoppers, but I have a list of additional things we could do if necessary.

The main additions:

The production build of the JS is now ~2MB, which is about the maximum I'm okay to ship. A single load of the page will transfer about 8MB, which is bigger that I would like, but I don't think completely out of the question. If we want to make things more efficient we could consider: