0
In CSS, there is the @import
that I can call the code from an external file within my current file. Example:
@import 'font-awesome/css/all.min.css';
I wonder if there is something similar to this in Javascript? In case, make an "import" of all the contents of one Javascript file inside another.
I’m not the one who denied it, but I think whoever did it was motivated by that phrase "import" of all the contents of one Javascript file within another. which implies something similar to
var script = document.createElement('script'); script.src = CAMINHO_DO_SCRIPT;
or something like the jQuery.getScript()– Augusto Vasques
@Augustovasques would be something in the sense of what you said. Could you share as an answer for me score?
– Mateus Daniel
Do you want my comment as an answer? No! It’s just a comment guiding the AR which way to direct the answer. Has no complete or remote purpose in providing solution to the question.
– Augusto Vasques