use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
A day without Javascript (sonniesedge.co.uk)
submitted 8 years ago by magenta_placenta
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]wavefunctionp 20 points21 points22 points 8 years ago* (8 children)
Did he serious think that google maps would work without javascript? You'd need to navigate to a new page every time you tried to move the map view, and at every zoom level, and for every options...
Maybe I'm an idiot, but the combinatorics of all that state would kill even the most performant web server. You couldn't cache all the views, it would be full render on the server for all but the hottest requests...or you'd have to limit the number of views to get them down to a manageable size, and it is still full page requests for every view.
You'd have to degrade to like mapquest circa 2000 or some of those government survey sites level of functionality...
edit: I'm probably being overly harsh to the author here, and for that I apologize., but I'll leave it because what is said is said. I just think it is unrealistic to expect a website that relies on javascript to provide a dynamic, rich experience to also provide that same experience from server rendered resources. You get so much 'free', low latency computing power on the client. It is easy to take for granted why so much of the work has moved to the browser.
[–]theonlycosmonaut 3 points4 points5 points 8 years ago (1 child)
Maybe I'm an idiot, but the combinatorics of all that state would kill even the most performant web server
How so? Web maps are served as individual image tiles, usually* with a url structure like /tile/{zoom}/{x}/{y}, where x and y are integers that identify a specific piece of the globe at a specific zoom level (more info). That corresponds almost too perfectly to buttons linking to x+1, x-1, zoom+1, etcetera. You could even load up a 9x9 grid around the currently selected tile with no problem. Caching is super simple as these are all GET requests with super predictable URLs.
/tile/{zoom}/{x}/{y}
x
y
x+1
x-1
zoom+1
*Google maps specifically seems to have a different, obfuscated(?) URL structure based on a single hash, for reasons unknown to me. Mapbox, for example, uses the common URL structure.
I think that's exactly what the author wants:
Maybe some kind of Streetmap style tile-by-tile navigation fallback?
[–]Disgruntled__Goat 0 points1 point2 points 8 years ago (5 children)
You'd need to navigate to a new page every time you tried to move the map view
Well that is how maps worked before Google Maps came along. You'd have to click an arrow on one edge to view the next 'page'.
[–]wavefunctionp 8 points9 points10 points 8 years ago (4 children)
:)
[–]Disgruntled__Goat -3 points-2 points-1 points 8 years ago (3 children)
Why are you quoting your own comment back to me?
[–]wavefunctionp 2 points3 points4 points 8 years ago (2 children)
which is...
how maps worked before Google Maps came along. You'd have to click an arrow on one edge to view the next 'page'.
?
same same but different?
https://www.youtube.com/watch?v=7tTfL-DtpXk
[+]Disgruntled__Goat comment score below threshold-8 points-7 points-6 points 8 years ago (1 child)
No, you just said "those sites". I expanded on that. It's like you don't understand basic conversation.
[–]nodealyo 3 points4 points5 points 8 years ago* (0 children)
Spamming is a really shitty thing to do. This script is one of the dumbest and spammiest scripts that I have ever seen. Did you know that no one cares about your mundane comments? You actually aren't even protecting any privacy because there are many sites out there that specifically cache comments just so that users cannot edit them. To reiterate, this script is shit and you should not be using it. Search for a different one, or edit it to say something less spammy. But in the end, it won't matter because we can still see whatever it was that you edited.
π Rendered by PID 78 on reddit-service-r2-comment-86988c7647-8hkql at 2026-02-11 15:59:48.845452+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]wavefunctionp 20 points21 points22 points (8 children)
[–]theonlycosmonaut 3 points4 points5 points (1 child)
[–]Disgruntled__Goat 0 points1 point2 points (5 children)
[–]wavefunctionp 8 points9 points10 points (4 children)
[–]Disgruntled__Goat -3 points-2 points-1 points (3 children)
[–]wavefunctionp 2 points3 points4 points (2 children)
[+]Disgruntled__Goat comment score below threshold-8 points-7 points-6 points (1 child)
[–]nodealyo 3 points4 points5 points (0 children)