Hi there,
I have a website that has a bunch of small scripts, and each page loads its needed scripts. I want to modularize these scripts so it'd easy to manage all of them.
What's the best approach to start this modularization process? Is require.js a good option? Is there anything else out there you guys could recommend?
Also, there are no test cases in place for the current scripts. Should I start writing them in the process?
PS: PHP is the backend language.
Thanks!
I have a website that has a bunch of small scripts, and each page loads its needed scripts. I want to modularize these scripts so it'd easy to manage all of them.
What's the best approach to start this modularization process? Is require.js a good option? Is there anything else out there you guys could recommend?
Also, there are no test cases in place for the current scripts. Should I start writing them in the process?
PS: PHP is the backend language.
Thanks!