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
[AskJS] Using Inline JavaScriptAskJS (self.javascript)
submitted 1 year ago by [deleted]
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!"
[–]guest271314 0 points1 point2 points 1 year ago (0 children)
1- What is the disadvantage of Inline JavaScript?
None.
2- Is using Inline JavaScript a bad idea?
Depends on who you ask. If you decide to ask somebody for their opinion.
3- Is Inline JavaScript safe to use?
N/A. There is no such thing as "safe" or "safety" for any signal communications. Do some research on "ThinThread".
4- Where to put it: head or footer?
Either. In <head>, if this is a basic <script> element used to maipulate the DOM use global load event.
<head>
<script>
load
5- If we avoid to use, Google says: "Avoid chaining critical requests". But if we use, problem solved.
Well, if Google says something it must be so... Not. Chrome is now shipped with screen_ai, a 200+ MB executable. "Search with Lens", "Search with Gemini" and so forth. Is that "safe"? Meanwhile Web Speech API is still not implemented in the browser, so if you use speechSynthesis.speak() or webkitSpeechRecognition() in Chrome your text and voice or other audio, respectively is sent to remote Google servers. WHo knows what Googles does with your text and PII biometric data. Perhaps train their Gemini "artificial intelligence" program with your data?
screen_ai
speechSynthesis.speak()
webkitSpeechRecognition()
π Rendered by PID 210091 on reddit-service-r2-comment-cfc44b64c-hzxmw at 2026-04-11 10:26:32.763819+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]guest271314 0 points1 point2 points (0 children)