4 ms·
That title is misleading, the article clearly says "The SDK code is so big that it represents about 16% of the total size of all Javascript on the average web p
by personjerry 9y ago
That title is misleading, the article clearly says "The SDK code is so big that it represents about 16% of the total size of all Javascript on the average web page." which is clearly not 16% the total site.
- mercer 9y agoWas the title changed? As it is, it clearly says '16% of the code', and to me that does imply only the javascript.
- hn_throwaway_99 9y agoI think most people would consider HTML and CSS "code", too. Why would you not count HTML if it's in its own file, but assuming you would count it if it was JSX returned from a React component?
- colejohnson66 9y agoProbably because technically HTML isn’t so much code as it is a markup language
- igravious 9y agoThis seems intuitively to be the case but I wonder what others think. Neither HTML not CSS have your regular programming language constructs like loops and state and what have you. I sometimes teach very basic web tech to arts/humanities students and I tend to make a static versus dynamic distinction for them between HTML/CSS on the one hand and JS on the other because to them it's all "codey stuff" but to me there's an important distinction. I'm happy to take on board other perspectives here.
- SyneRyder 9y ago> This seems intuitively to be the case but I wonder what others think. I've not clicked through the article, but before I saw any comments here, I thought it was claiming that 16% of the HTML on the average site was devoted to Open Graph Stories markup, like / share buttons, and other embedded FB widgets. (But that was already primed in my mind, as a couple of days I'd been examining the source of a website that had a ludicrously huge Head section, and it was filled with Facebook sharing markup.)
- mercer 9y agoInteresting. I would have never assumed as you did precisely because 16% of markup is a drop in the bucket compared to 16% of code (or CSS, even).
- fnord123 9y agoTuring incomplete code (sql, bpf, agda) is code. ergo markup is code. imo, ymmv.
- pooonthis 9y agoJSX isn't HTML, it's javascript functions, which are code. HTML, as the name suggest is a markup language, and CSS are style sheets. Neither of these are code.
- jackmott 9y agohtml not code. css maybe. the pedant has spoken, so it shall be, in my mind