re: Progress Indicator With Fetch VIEW POST

re: Nice! I've been wondering lately about checking the progress of a fetch request. However, you use a for loop without any arguments in your example:...

It's honestly just preference! If you want to be pedantic, then my way is less work: the while (...) loop checks downloadIsDone even though we know it's false already, but this is splitting hairs.

FWIW, I write a lot of Go, which has a "naked" for loop: for { ... }, which I quite like—it's just the same as using (;;) in the body of a JS for loop.

code of conduct - report abuse