0

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.

2
  • 1
    For a pure JS solution, you could use the following: stackoverflow.com/questions/1866717/… Commented Apr 11, 2013 at 16:32
  • thanks. it worked. if you post it as an answer, i will accept it :D Commented Apr 16, 2013 at 6:48

1 Answer 1

0

Yes, there are multiple options, for example jQuery has $.getScript method. Or you can use http://requirejs.org/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.