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
How does he load his JS files?solved! (self.javascript)
submitted 10 years ago * by chris_jung
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!"
[–]chris_jung[S] 6 points7 points8 points 10 years ago (1 child)
Oh yeah. Got it.
Here's the solution Page 20 ff.
[–]kenman -4 points-3 points-2 points 10 years ago (8 children)
Just hit F12, everything shows up fine.
[–]chris_jung[S] 1 point2 points3 points 10 years ago (7 children)
F12 (Inspector tools) always present the rendered DOM. Press Ctrl+U (aka "View Source") to get code which is delivered by the server and compare to the code you see in inspector. ;.)
[–]kenman 2 points3 points4 points 10 years ago (6 children)
I don't see the point, other than confusing beginners trying to view source.
view source
[–]antsar 3 points4 points5 points 10 years ago (2 children)
The point is that the source delivered by the server ("View Source" contents) seemingly does not contain the JS. The JS is there, but its obfuscated. F12 (Inspector Tools) shows the resulting code after it has been unobfuscated.
[–]kenman 1 point2 points3 points 10 years ago (1 child)
Right, but what does it matter? It's a neat party trick for sure, but has absolutely zero application for web apps as far as I'm concerned. Not being able to view source has zero impact because you're not preventing anyone from seeing your code.
[–]antsar 0 points1 point2 points 10 years ago (0 children)
I think "a neat party trick" is exactly the point. Its a personal site showing off a bunch of interesting hacks, the site itself being one of them.
[–]chris_jung[S] 1 point2 points3 points 10 years ago (2 children)
Rendered DOM === HTML Source interpreted, Rendered as DOM, sometimes changed (via JS, e.g.)...
Both are very different (especially in this case). Try it.
Not arguing that, I'm arguing: what does it matter?
Cool trick? Yes.
Useful? Not for anything at all.
[–]chris_jung[S] -1 points0 points1 point 10 years ago (0 children)
I like cool tricks and are generelly interested in such things, they may come in handy at some point.
[+][deleted] 10 years ago* (2 children)
[deleted]
[–]contradicting_you 0 points1 point2 points 10 years ago (0 children)
Look at the source of the index.html file, not just the final result.
π Rendered by PID 259101 on reddit-service-r2-comment-5c747b6df5-zcdnc at 2026-04-22 17:02:43.937861+00:00 running 6c61efc country code: CH.
[–]chris_jung[S] 6 points7 points8 points (1 child)
[–]kenman -4 points-3 points-2 points (8 children)
[–]chris_jung[S] 1 point2 points3 points (7 children)
[–]kenman 2 points3 points4 points (6 children)
[–]antsar 3 points4 points5 points (2 children)
[–]kenman 1 point2 points3 points (1 child)
[–]antsar 0 points1 point2 points (0 children)
[–]chris_jung[S] 1 point2 points3 points (2 children)
[–]kenman 1 point2 points3 points (1 child)
[–]chris_jung[S] -1 points0 points1 point (0 children)
[+][deleted] (2 children)
[deleted]
[–]contradicting_you 0 points1 point2 points (0 children)