More JavaScript

Group Leader
Joined
Feb 11, 2019
Messages
243
Sorry I know it’s not easy, but this website is missing some JavaScript. Every time I change a reading status or a rating on a title, it prompt the website to reload. When I’m batch rating or doing some other stuff, I have to wait for the website to reload each time. Some JavaScript would be nice. And in a few other parts too. Like the reader has some nice JavaScript. Commenting could also benefit from it, but it’s not that necessary.
 
Dex-chan lover
Joined
Dec 25, 2018
Messages
1,146
Maybe mangadex uses a different language?
I don’t know tho.
 
Group Leader
Joined
Feb 11, 2019
Messages
243
In the end it has to be compiled to JS though. Or unless they use CSS functions for everything. lol
 
Joined
Apr 23, 2018
Messages
1,071
I believe your asking for more Ajax request. Specifically the type that partially reload the site (specific elements update, like just the reading status/rating, or just the comment section reloads) or do changelog style content updating (we tell the server the last post we saw was post 1234, and it intelligently only sends post 1235+ and edits from 1234-).

I do not imagine there being much benifit from doing this, if its not already done this way. The amount of data being sent is pretty small already, and if setup properly, images will be cached by the browser, so its just text being re-downloaded. Though I suppose it can be reduced to just a few characters of json for status updates (or just a success boolean, since the browser knows what we changed the value to and doesn't really need any other data).

But, what I really wanted to say, there are more options than JS now! WASM promises to be a better alternative in the near future, and is a better alternative for modern devices (at least for more intensive work, especially when DOM manipulation isn't needed). But, from the posts in the forums, too many people are using old iphones/ipads that are no longer supported for me to think wasm is viable atm.
(WASM =Web Asembly, allows you to write in any programming language and compile it for the web. Standard is supported by all major browsers, but is still missing some shims that prevent js from being completely obsolete, however, they interact well with eachother). And the benefits of wasm are minimalistic for the way this site would use it, so unless the devs just hate js, or already are all familiar with using wasm in another language (and the same language for all of them), I see no reason to even consider jumping ships yet.
(Still waiting for host bindings proposal to be implemented)
(Also eagerly awaiting WebAuthn, bc passwords suck and people are too easily baited by phishers)
 
Dex-chan lover
Joined
Mar 27, 2018
Messages
1,335
a guy simply using strange wording to ask for less full page loads for in-page operations spawned a very strange discussion about web technology
 
Group Leader
Joined
Feb 11, 2019
Messages
243
@firefish5000 I have experimented with Web Assembly and I do like it. Much faster. But I’m still more used to JavaScript. And yes, I do want more Ajax. I don’t imagine it to be hard to implement. I’m going to be adding a bunch of manga to my list and having to reload the page for each time I add and rate one of them, it’s just too much. I’m waiting to see if they’ll add some Ajax to speed this up for me. Also waiting on WebAuth! I think Dropbox implemented it... but I can’t find it.
 
Joined
Apr 23, 2018
Messages
1,071
@acs87 If nothing else, I believe google has it (which many other sites allow for 3rd part authentication), or at least something equivalent to it. I login to google on my home pc, school, and work by pushing a button on my phone instead of typing a password!
All the recent extensions to js has made it much more tolerable for me, actually... I kind of like it now (Promises and ()=>{} functions, plus strict mode made me not pull as much of my hair out). But I am not a great programmer, so WebASM and a strict compiler in a typed language to babysit me is a necessity for anything remotely complex.
 

Users who are viewing this thread

Top