Hello,
I was wondering if there is a way to not download all the plugin files and resources every time a page is loaded.
Here is an example: we’ve developed a JavaScript code to validate the VAT and if we use via Toolbox plugin for example, the Chrome developer tools says it only get the JavaScript code when using it in a workflow.
But if we develop a plugin and put the JavaScript in the plugin, every time the page is loaded, it loads all the plugin JavaScript and files.
We’re looking for performance here so I was wondering how we can tell the plugin to only load the resources when it’s been actually used and not to have the files loaded on standby mode till they’re used.
We’re actually thinking what’s the best performance wise, have the code in the database and call it when needed or doing it via plugin since plugin is easier later to maintain.
Thanks a lot to all.