Is it possible to include a javascript files in jsp dynamiacalyy, ie. in any listener or anything like that from the current javascript file. This is for speeding up the page load.
Asked
Active
Viewed 446 times
0
-
1For a pure JS solution, you could use the following: http://stackoverflow.com/questions/1866717/document-createelementscript-adding-two-scripts-with-one-callback#1867135 – Walid Apr 11 '13 at 16:32
-
thanks. it worked. if you post it as an answer, i will accept it :D – skmaran.nr.iras Apr 16 '13 at 06:48
1 Answers
0
Yes, there are multiple options, for example jQuery has $.getScript method. Or you can use http://requirejs.org/

Richard
- 279
- 2
- 9