{"id":351143,"date":"2021-09-01T17:29:23","date_gmt":"2021-09-02T00:29:23","guid":{"rendered":"https:\/\/css-tricks.com\/?p=351143"},"modified":"2021-09-08T13:52:50","modified_gmt":"2021-09-08T20:52:50","slug":"__trashed-7","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/__trashed-7\/","title":{"rendered":"You don’t need external assets in an HTML file"},"content":{"rendered":"\n

A fun exercise<\/a> from Terence Eden. You can send an HTML file over the wire including anything a website might need without requesting any other files. CSS and JavaScript are easy, because there are <script><\/code> and <style><\/code> tags. Images and fonts (and pretty much whatever other kind of asset) aren’t too hard because Data URLs exist<\/a>. See Terence’s post for an extra-tricky final version including .zip<\/code> files.<\/p>\n\n\n\n\n\n\n\n

Reminds me of a couple of other tricks…<\/p>\n\n\n\n