Dynamic JS/CSS File

Since JYAML 4.5.0 there is a way to create dynamically generated JavaScript and Stylesheet code.

You can find these files in JYAML template directory under /css/css.php and /script/script.php.

The generated code is displayed as an inline declaration. So accordingly in <script> or <style> tags.
This is for two reasons:

  • This guarantees that the JS/CSS Chunker (Minifier) does not cache thus dynamic content.
  • Secondly, there is the advantage that you can used all PHP functions normally. This eliminates the parameter passing and the initialization of Joomla per file, which has a performance advantage.

Please read the security notes in these two files to avoid potential attacks.