简体   繁体   中英

Include javascript file in jsp from anothe javascript file dynamically

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM