News for hackers. Stuff that matters.
Re:How I made a website with Svelte by 83hajfjeijg on Saturday December 28, 2019 @11:15AM (#21899618)
https://bestof2019.johanronsse.be just shows an empty page.

(oh how far we've come - a simple best of list requires javascript)

Re:How I made a website with Svelte by karmakaze on Saturday December 28, 2019 @11:38AM (#21899816)
Thanks for the quick link. Complaining about a web page not working with js disabled is just noise, especially on a 'made with {framework}' post.
[dead]
Re:How I made a website with Svelte by dang on Saturday December 28, 2019 @03:06PM (#21901393)
Could you please stop posting unsubstantive comments to HN?

Could you please also stop creating accounts for every few comments you post? We ban accounts that do that. This is in the site guidelines: https://news.ycombinator.com/newsguidelines.html. HN is a community. Users needn't use their real name, but do need some identity for others to relate to. Otherwise we may as well have no usernames and no community, and that would be a different kind of forum. https://hn.algolia.com/?sort=byDate&dateRange=all&type=comme...

Re:How I made a website with Svelte by _-___________-_ on Saturday December 28, 2019 @12:25PM (#21900163)
I tend to agree; however, it's really easy to make a site like this work without JS.

Edited to add: to be clear, I mean while still using the framework.

Re:How I made a website with Svelte by sosodev on Saturday December 28, 2019 @01:47PM (#21900792)
Is it? You either you need some kind of server side JavaScript rendering (pita to get right imo) or you need to create a complete copy of the website that’s statically rendered (and replaced if the user has JS enabled?)
Re:How I made a website with Svelte by _-___________-_ on Tuesday December 31, 2019 @08:41AM (#21920908)
Have a look at Sapper, which is a framework built around Svelte that makes the server-side rendering pretty easy. I worked with a next.js SSR project recently and that was an absolute trainwreck, but Svelte/Sapper, while not perfect, is pretty nice.

You have to be a little careful about the interactions if you really care about it working with no JS (e.g. have an on:submit for a form and then also have a server-side route that it can POST to) but it's not too bad really.

Re:How I made a website with Svelte by Wolfr_ on Saturday December 28, 2019 @01:56PM (#21900865)
You can find versions that support Javascript at http://bestof2018.johanronsse.be/ and http://bestof2017.johanronsse.be/ . I used a static site generator for this.

This is clearly a technology exploration.

How can I explore new technologies if I impose limits that others don't set for themselves? The job market asks for JS skills. Look at my conclusion at the bottom of my post: I state that this might be a technology downgrade instead of upgrade.