3 ms·
[Off topic] <script> var CONTENT = '' + "Why Common Markdown isn't the Solution\n" + ... That's probably the most roundabout way to put an article on
by ahoge 12y ago
[Off topic]
<script>
var CONTENT = '' +
"Why Common Markdown isn't the Solution\n" +
...
That's probably the most roundabout way to put an article on the web. You are inlining Markdown in an HTML document. Then the browser has to parse and execute 4.5 MB (!) of JavaScript and then it can finally turn that Markdown string into HTML.
HTML documents are a pretty good choice for, y'know, HTML.
Well, if your goal was to increase the page weight from 10kB to 2.2Mb, you surely succeeded.
- ariabuckles 12y agoOh, I'm quite aware :). It's an effort of extreme dogfooding of https://github.com/khan/perseus https://github.com/khan/perseus. This post doesn't use anything interesting, but if I wanted to post about some of the interactive math content we're doing there, I could actually embed it. It is also useful to learn how annoying it is to embed (answer: much more annoying than I'd like).
- TheLoneWolfling 12y agoAnd in the process render it unusable for people with JS blocked.