Hello,
If it is complicated to open javascript data files (considering the increasingly high protections that destroy gradually all conventional techniques), by cons there is nothing more natural and simple as call a js function.
To avoid any complications and future developments imposing a particular format and remained free to use data files as I want, my idea is to create a multitude of functions containing variable to different data.
The concept works, I tested. My concern is that I want to create a sound bank in the addon lecjoa firefox, and the js files are called to open the page. If I introduce an entire audio library that is currently reflected by loading the entire audio library, although a dozen audio files is used.
To correct, I thought for loading js files according éventement that took place in the HTML page.
Does anyone have any ideas on the best way to do that?
In other words, I have an html page that calls js files that track the events.
According to such an event in the HTML page, a new js file is loaded
cordially