Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an app.js file which contains all the functions related to a project.
How do I run that javascript file on every url change?
Posted

1 solution

Split it so each page loads only what it needs.

If you're stuck with single monolith file then create master page which will load it or create base page from which every other page will inherit and which will load it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900