5 ms·
I have an idea: why not speed up your site by NOT running js at all?
by bombolo 4y ago
I have an idea: why not speed up your site by NOT running js at all?
- onion2k 4y agoBut then my contact form won't work! ducks
- deleted 4y ago[deleted]
- SketchySeaBeast 4y agoBut what if we want a site that's more interactive than a blog?
- MichaelCollins 4y agoWho's 'we'? The user, or the web dev? Most javascript exists to scratch the itch of the webdev who made it, doing shit no user ever asked for.
- SketchySeaBeast 4y agoWell, people who don't want to keep refreshing the page to see the site update. That's not just "[scratching] the itch of the webdev who made it".
- pvg 4y agoThat's a fine personal choice but don't snarkpoop on other people's Show HN's. https://news.ycombinator.com/showhn.html https://news.ycombinator.com/showhn.html
- bombolo 4y agoIf other people's choice had no influence on me, I would totally agree with you.
- pvg 4y agoIt's not a matter of agreement, it's just that this sort of comment is offtopic in Show HN's.
- bombolo 4y ago> When something isn't good, you needn't pretend that it is, from the link you provided…
- pvg 4y agoThat's right, except you skipped all the other bits in the link provided - Be respectful. Anyone sharing work is making a contribution, however modest. Ask questions out of curiosity. Don't cross-examine. Instead of "you're doing it wrong", suggest alternatives. When someone is learning, help them learn more. When something isn't good, you needn't pretend that it is, but don't be gratuitously negative. Reflexive snark comment that's not even about the thing being shown is none of that. And there's also Please don't post shallow dismissals, especially of other people's work. from https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- bombolo 4y agoI did suggest an alternative: not running js. You clearly don't like my idea, but that doesn't mean it isn't valid.
- newbieuser 4y agoyou are absolutely right. we should completely throw away the development of browser APIs over the years and develop sites with html 4.0
- RunSet 4y agoThis but unironically.
- togaen 4y agoTotally agree with this, actually.
- dahfizz 4y agoThe web was a much better place 10 years ago.
- somishere 4y agoa sweet spot?
- sirwhinesalot 4y agoIs... is it bad that I think that might not actually be so bad? I never had an issue with full page reloads of a damn blog, but somehow it's all SPA garbage these days and all the sites have errors in one or more browsers but miraculously keep chugging along (except when they don't and there's a blank page). At least in the old days if CSS or JS didn't load, you still got a semi-usable page. Turning HTML+CSS+JS into an application platform has been one of the most fundamentally stupid things we've done as a field and we'll keep paying for it for years on end, second only to not adding slices to C.
- wonnage 4y agoIncoming flood of edgelord comments saying they think that would be better
- newbieuser 4y agoI made this comment to summon them. they come out of their caves when they see something about no js lol
- balls187 4y agoThe docs are confusing. This is really about how to make your UI more responsive by performing intensive tasks only when your browser isn’t doing any other tasks related to the javascript code. In non JS applications, you typically would do this on any thread but the UI thread. But with Javascript, you have the option of doing tasks on the main thread, but only when all other tasks are not being executed. IE a priority queue.