No one should need JS to see the soups when that could be handled perfectly fine with CSS. I wish restaurants would just make their homepage a PDF of the menu.
I agree with no JS, but why PDF over HTML? Hard-wrapping for letter-sized paper (ok, a PDF doesn't need to be letter-sized, but most menus are approximately that) with crapshoot reflow options for soft-wrapping in certain viewer apps is pretty dicey on a phone, mitigated only slightly by rotating the phone sideways. The only benefit I can think of is if it leads to more frequent updates by the restaurant, due to limi…
Free static site generator for small restaurants and cafes
61–70 of 110 posts
Re: Free static site generator for small restaurants and cafes
#62Earlier quoted context omitted.
Translating anything that renders on my screen is the same two clicks to open an LLM with the screen contents. I expect that will become an increasingly universal experience as LLM features get shoved into every nook and cranny of tech.
There's been a translate button for years which hooks deep into every nook and cranny of the website's HTML. It works great, it's built in and many restaurants even advertise it for tourists, because it's a zero-effort translation of their existing menu. Plus, it's low-data when you're inside a 1-bar basement restaurant. Using an LLM to translate the visible part of a PDF on a mobile... seems like the worst possible…
Re: Free static site generator for small restaurants and cafes
#63Earlier quoted context omitted.
This is the wrong way of looking at it. Making a website's basic functionality work without JS isn't just for the random users who switch off their browser's JS runtime. It's also for the people who have a random network dropout or slowdown on a random file (in this case a JS file).
> 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?
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
#64Earlier quoted context omitted.
I agree with no JS, but why PDF over HTML? Hard-wrapping for letter-sized paper (ok, a PDF doesn't need to be letter-sized, but most menus are approximately that) with crapshoot reflow options for soft-wrapping in certain viewer apps is pretty dicey on a phone, mitigated only slightly by rotating the phone sideways. The only benefit I can think of is if it leads to more frequent updates by the restaurant, due to limi…
I vastly prefer looking at a PDF menu over an HTML one nearly all the time. PDFs are usually nicely formatted, and I don’t mind zooming and panning to see everything. HTML is frequently terribly formatted, interspersed with ads, slow, etc
You can put ads into terribly formatted PDFs too
Re: Free static site generator for small restaurants and cafes
#65No one should need JS to see the soups when that could be handled perfectly fine with CSS. I wish restaurants would just make their homepage a PDF of the menu.
No one should need an entire PostScript interpreter to see the soup of the day, either. A restaurant menu is text and images. HTML and CSS are perfect for text and images.
Re: Free static site generator for small restaurants and cafes
#66No one should need JS to see the soups when that could be handled perfectly fine with CSS. I wish restaurants would just make their homepage a PDF of the menu.
To be fair this project uses zero 3rd party npm modules for runtime. The total runtime JS it uses is 1.76kB in size.
Re: Free static site generator for small restaurants and cafes
#67Re: Free static site generator for small restaurants and cafes
#68Earlier quoted context omitted.
To be fair this project uses zero 3rd party npm modules for runtime. The total runtime JS it uses is 1.76kB in size.
It also works just fine without JavaScript, so I'm not sure what they're trying to do with that comment.
Re: Free static site generator for small restaurants and cafes
#69Earlier quoted context omitted.
Remember during Covid where every restaurant's menu was a QR code on the table that linked to a PDF in S3?
Covid ended?
Re: Free static site generator for small restaurants and cafes
#70Earlier quoted context omitted.
I vastly prefer looking at a PDF menu over an HTML one nearly all the time. PDFs are usually nicely formatted, and I don’t mind zooming and panning to see everything. HTML is frequently terribly formatted, interspersed with ads, slow, etc
> HTML is frequently terribly formatted, interspersed with ads, slow, etc You can put ads into terribly formatted PDFs too