5 ms·
It certainly feels that way sometimes. But web is rather unique. There aren't any other platforms that demand you deliver an application for "a device" (specifi
by lwansbrough 6y ago
It certainly feels that way sometimes. But web is rather unique. There aren't any other platforms that demand you deliver an application for "a device" (specifications unknown!) in under 1 second.
- majewsky 6y agoWeb is indeed unique. No one else would consider a magazine article "an application".
- Frost1x 6y agoThere's such a thing as an unreasonable, unrealistic, or downright stupid demand as well. What you often see is a house of cards hacked together to try and support such demands on the web. Sending reasonably well visually formated text is definitely a reasonable demand though.
- giantrobot 6y agoThat's why there's all kinds of helpful features in HTML/CSS like media queries. You can serve up raw content and let the device make decisions on what resources to use to display the content. You can tell the device the most optimal resources for its particular constraints. As a for instance you your script tag can just include a bunch of @import statements. Thankfully @import statements support media queries [0]. So you get the utility of external style sheets but can load one optimized for the client device. Unlike media queries on link tags the browser doesn't load style sheets (well they're not supposed to) that don't match the media queries. It's also trivial to include a tiny bit of base styling with every page in a script tag. It doesn't blow any size budgets and makes sure a page is readable even with no external assets. [0] https://developer.mozilla.org/en-US/docs/Web/CSS/@import https://developer.mozilla.org/en-US/docs/Web/CSS/@import