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.
-
1For a pure JS solution, you could use the following: stackoverflow.com/questions/1866717/…Walid– Walid2013-04-11 16:32:11 +00:00Commented Apr 11, 2013 at 16:32
-
thanks. it worked. if you post it as an answer, i will accept it :Dnr.iras.sk– nr.iras.sk2013-04-16 06:48:20 +00:00Commented Apr 16, 2013 at 6:48
Add a comment
|
1 Answer
Yes, there are multiple options, for example jQuery has $.getScript method. Or you can use http://requirejs.org/