Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14149

Serve concatenated/minified/compressed css

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • 4.0.0-a1
    • 3.2.0-dev
    • Styles, Template Engine
    • None

      There are countless reasons to stop serving a static css file using the @import statement. But because It drastically improves performance & allows us to run diagnostics on the theme is enough in my book.

      We need some sort of way to merge/minify/compress the css that we serve on the fly. It should do this based on some sort of check of a db field with some sort of unique hash or maybe a timestamp.

      Or we need to ship a merged and merged/minified version rather than one using @import.

      I would also suggest that we split out the cp file as its own include for just those pages somehow.

      Open to suggestions.

      We should really consider extending this to the JS at some time as well, but the focus should be on the css which is more important.

      Disscussion: https://area51.phpbb.com/phpBB/viewtopic.php?f=81&t=45669

            Unassigned Unassigned
            Hanakin Michael Miday
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: