News for hackers. Stuff that matters.
Re:Free static site generator for small restaurants and cafes by handoflixue on Tuesday December 02, 2025 @08:12PM (#46129098)
> It's also for the people who have a random network dropout or slowdown on a random file (in this case a JS file).

Does that really apply when the javascript is only ~2kb?

Re:Free static site generator for small restaurants and cafes by spartanatreyu on Tuesday December 02, 2025 @10:31PM (#46129988)
Yes, any request can get stuck at any time.

That is what's happening any time you've seen a website that randomly decides to load without styles, or with a missing image.

The good thing is that it's very apparent when that happens and you can just reload the page.

But it's not immediately obvious when it happens with a JS file.

That's half the reason why you shouldn't re-implement css features in a js file. (the other half is performance)

Re:Free static site generator for small restaurants and cafes by justsomehnguy on Wednesday December 03, 2025 @12:44AM (#46130679)
Do the end user should troubleshoot if that was a network dropout, some browser incompatibility or just a crappy code by a crappy coder?

> the javascript is only ~2kb?

It can be even 200Mb if it's not loaded properly and now a website doesn't even function.