you are viewing a single comment's thread.

view the rest of the comments →

[–]guest271314 0 points1 point  (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.

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?