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.
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.
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 limited skillset.
If the restaurant doesn't have anything besides a menu, /index.pdf is fine—no web design required; reuse the menu they're printing anyway.
The trade-off is that they'll have to pinch/zoom if they have a small display. It's a minor inconvenience to make the exact information they want available instantly.
The complexity between the modern web and a pdf is marginal. PDFs do get printed for menus. Editing a PDF and uploading it to the site, integrating prices and syncing between the site, online ordering, PDF menus is just part of the business. There are lots of platforms that help with this such as Slice.
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
PDF is an enormous pain in the tits to view on a phone and has significant accessibility issues for people using assistive technologies.
It's not even about blind people. People with ADHD or dyslexia use assistive technology, which frequently makes an absolute horlicks of interpreting PDF. It's one of the reasons I'm trying to move a lot of documentation at work away from PDF and onto just straight HTML.
Plain old HTML, with thin CSS on it to make it not be black-and-white Times New Roman. Kicking it oldschool.
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.
All of my static sites that I've built lately have been done on Netlify. Super easy to hook up to Github and the form handling is a breeze. I've known Mathias going back to when he was personally answering emails and promoting JAMSTACK so you can say I'm a bit biased. lol
Netlify is a great company that I'll always support.
What an exhausting solution to a made-up problem. This is exactly the kind of functionality JS was made to provide. There's a lot more JS in the PDF.js renderer modern browsers, and if you're not using a modern browser it likely wouldn't render at all. As others have pointed out, you're asking restaurants to throw away mobile traffic, screen readers, anyone not on a mainstream desktop browser to save ~20 lines of code in a programming language you don't like.
From a business perspective you can go further: the people who are browsing the internet without JS are people who are going to cost you more to support than they'll ever bring you in revenue. Just like trying to support Linux gamers, excluding them is a net positive.
I wish restaurants would just make a homepage with menu _and_ opening hours.
In my area most restaurants have no website.
If they have a website it's often very hard to find their opening hours.
Under 'contact'? Nope!
At the footer? Nay!
Maybe somewhere hidden in the menu PDF? With luck...
Outside their homepage at google maps? Maybe.
On their Tripadvisor page? Hahaha! Funny! Not.
As an embdded engineer I'm always disappointed at how much processing power and RAM is needed just to display websites with just images and text. The vast majority of them do not need javascript
venturecruelty|3 months ago
andai|3 months ago
hunter2_|3 months ago
The only benefit I can think of is if it leads to more frequent updates by the restaurant, due to limited skillset.
ok123456|3 months ago
The trade-off is that they'll have to pinch/zoom if they have a small display. It's a minor inconvenience to make the exact information they want available instantly.
neuroelectron|3 months ago
parpfish|3 months ago
pastel8739|3 months ago
ErroneousBosh|3 months ago
It's not even about blind people. People with ADHD or dyslexia use assistive technology, which frequently makes an absolute horlicks of interpreting PDF. It's one of the reasons I'm trying to move a lot of documentation at work away from PDF and onto just straight HTML.
Plain old HTML, with thin CSS on it to make it not be black-and-white Times New Roman. Kicking it oldschool.
nottorp|3 months ago
Wait for 2 more iOS redesigns and everyone will use assistive technology on Apple devices :)
victorbjorklund|3 months ago
AlotOfReading|3 months ago
fullstacking|3 months ago
Groxx|3 months ago
dugmartin|3 months ago
- https://astro.build/themes/details/astropie/
- https://astro.build/themes/details/astrorante/
- https://astro.build/themes/details/tastyyy-restaurant-websit...
burningChrome|3 months ago
Netlify is a great company that I'll always support.
adzm|3 months ago
bryanhogan|3 months ago
DoctorOW|3 months ago
glxxyz|3 months ago
yieldcrv|3 months ago
foresto|3 months ago
stronglikedan|3 months ago
unknown|3 months ago
[deleted]
mvdtnz|3 months ago
spartanatreyu|3 months ago
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).
lmm|3 months ago
pimlottc|3 months ago
ThomasMidgley|3 months ago
In my area most restaurants have no website.
If they have a website it's often very hard to find their opening hours. Under 'contact'? Nope! At the footer? Nay! Maybe somewhere hidden in the menu PDF? With luck... Outside their homepage at google maps? Maybe. On their Tripadvisor page? Hahaha! Funny! Not.
cess11|3 months ago
samdoesnothing|3 months ago
Actually, nobody should need an XML parser to see the soups either.
ChrisRR|3 months ago
fullstacking|3 months ago
/s