We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13428 ☆ A M B ☆
    • 1,031 Posts
    Just two small additions for Evolution which are working well together:

    https://github.com/Jako/AddHeaderfiles

    With this snippet the MODX API functions regClientStartupScript, regClientScript and regClientCSS are used to insert Javascript and CSS-Styles at the appropriate positions of the current page. You can provide filenames, chunknames and chunk-/filenames within a chunk (recursive).

    https://github.com/Jako/MinifyRegistered

    With this plugin all js and css files added by regClientStartupScript, regClientScript, regClientCSS, regClientStartupHTMLBlock and regClientHTMLBlock are checked to minify them by minify

      • 46580
      • 167 Posts
      Works fine with modx 2.3.
      Is there any option to remove blank lines?
        MODX lover
        -
        Développeur MODX / Webdesign / Solutions web
        • 9995
        • 1,613 Posts
        I grabbed the output and paste it back into the template so actually don't use AddHeaderfiles anymore.
          Evolution user, I like the back-end speed and simplicity smiley
          • 2762
          • 1,198 Posts
          I'm using the plugin/snippet combo on 2 live sites - both works without issues.

          Note: the snippet output the link to minified css/js just before the closing head tag. All other links to styles are placed before the snippet output (and you can not change the order).

          Note2: for proper use, you should call the snippet twice: once in the header (with css) and one in the footer with js...

          or , as written by fourroses666, grab the output and split in two pieces of code (one for js and one for css) and paste into the template.
            Free MODx Graphic resources and Templates www.tattoocms.it
            -----------------------------------------------------

            MODx IT  www.modx.it
            -----------------------------------------------------

            bubuna.com - Web & Multimedia Design