Is there anyway i can generate a tempory file that will link to a js file that can then be deleted when its not required anymore.
so for example, I want to avoid having <script src="Assets/js/app.js"></script>
instead i would like to having something like <script src="hsaiw45.js></script>
but essentially this would point to the Assets/js/app.js
file. So i could have loads of temporary files that all link to the same js file. then i could create a temp file based on a user name when they log in and then destroy this when they log out.
Instead of <script src="hsaiw45.js"></script>
use something like <script src="myjs123.php"></script>
Then in this PHP script do the logic you need and redirect to the JS file you want.
Even more, you can do something like <script src="myjs.php?id=123XYZ></script>
then according to the id
key you decide which JS file to load.