1.

Explain the difference between internal and external Javascript?

Answer»
S.noInline scriptsExternal scripts
1.It loaded in the same page so not necessary to TRIGGER another request.It gives better SEPARATION of concerns and maintainability.
2.These scripts executed immediatelyExternal script is DOWNLOADED by the browser & stores it in the cache.
3.async and defer attributes did not useasync and defer attributes can be use
4.It is helpful when we are USING a server side dynamic renderingIt can be used to load browser side code on demand & reduce overall download TIME and size.


Discussion

No Comment Found