When it comes to my CSS, I have taken the approach of creating smaller files for specific functions and then using minification to merge and compress them into one file for easier download.
I want to apply the same strategy to my JS Files by logically separating them and then combining and compressing them with MIN for download purposes.
However, the only issue I'm facing is that the AJAX-based site I am developing has a core JS file responsible for handling requests to load pages in the main viewing area.
Is it possible for me to call a function from this core JS file in other JS files? It's almost like making one JS file accessible to other scripts.
Do you have any advice or suggestions on how to proceed?
Thank you
Update*
Could someone guide me on how to call a function in one JS file from another?
For example:
File A contains the function "callmetoday()"
How can I execute this function from within JS file number 2?