include a script in another script

include a script in another script

Hi,

I have a main.js and xxxxx.js 

main.js will be for every page in my website where xxxxx.js is a page specific, e.g. new_employee.js, employee_details.js, help.js, etc 

Is it possible to load the xxxxx.js and with the xxxxx.js I include main.js?

Otherwise it will have a duplicate pagecreate event? is this ok?


Thanks,