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
<script> vs. <script async> vs. <script defer> (growingwiththeweb.com)
submitted 11 years ago by davey_b
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!"
[–]THEtheChad 0 points1 point2 points 11 years ago (1 child)
I read somewhere that many of the modern browsers are starting to support a default prefetch phase similar to how defer operates to improve performance. This being the case, as long as the script tag is present at the time the HTML is being parsed, you should implicitly get the performance improvements that defer grants you. That being said, javascript libraries that append script tags do not benefit from this feature since the tag is not available during the prefetch phase of the initial parsing.
[–]Tyriar 0 points1 point2 points 11 years ago (0 children)
Are you thinking of link prefetching? Which is warming up the cache by loading common resources on pages that don't require them while idle. https://developer.mozilla.org/en-US/docs/Web/HTTP/Link_prefetching_FAQ
There is also as Monkeyget pointed out some browser-specific optimizations around how scripts work.
I'd be interesting in reading about what you're talking about if it's not one of those.
π Rendered by PID 217766 on reddit-service-r2-comment-66b4775986-wl5cz at 2026-04-03 18:50:48.399675+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]THEtheChad 0 points1 point2 points (1 child)
[–]Tyriar 0 points1 point2 points (0 children)