Hacker News new | ask | show | jobs
by fairytale 1776 days ago
I feel like this is a great idea, honestly.

But in my opinion I think that you should make the website fully work without the use of client-side JavaScript.

Not that I dislike JavaScript, in fact, I love it. And it's great! But there are several reasons I think that this would make sense doing.

Here is a detailed explanation for "why":

The website already works without the use of client-side JavaScript, only not the index.

If you for example go to: https://per.quest/https://example.com it will work just fine and redirect you to the generated MP3 file.

But if you put https://example.com inside of that input on the website index and have JavaScript disabled it simply won't work. There also is no notice that it does not work without JavaScript enabled.

The solution to this is simple and I think that it would not be hard to change the way you are getting the user given URL from your back-end. What I think would make more sense doing is to just make it work using a URL query parameter.

For example: https://per.quest?url=https://example.com

... which would then allow you to make use of HTML forms, and simply add the "name" attribute to the input with the value set to "url".

So, this would then work in both cases: when the user hit enter and/or pressed a button inside of the form.

Hope that you will agree with me on this!