Developer ?: Add js to cache/minimizer

What would be the proper way to add a js script to be included on every page load and minimized/cached/gzip by UNA?

I know how to add script tags, inject, etc. These are just links, and it makes page load slower. I want to start including my js in UNAs built in handling.

How to do so?

  • 303
  • More
Replies (2)
    • Hello @Wise !

      If this is a good file then you may place it in the inc/js directory and add it to the system preloader via this MySQL command:

      INSERT INTO `sys_preloader`(`module`, `type`, `content`, `active`, `order`) VALUES

      ('system', 'js_system', '[your file name].js', 1, 120);

      • @LeonidS thank you my friend 🙏

        Login or Join to comment.