Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-4360

Optimize Campaign assets - chunk into separate files

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • 2.9
    • None
    • 4
    • Campaigns, Performance
    • Sprint #110, Sprint #111

      The webpack build is generating this warning:

      WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
      This can impact web performance.
      Assets:
      ./campaigns.min.css (416 KiB)

      This is probably due to the complexity of the campaigns SCSS files, and the scoping and inheritance in place. So it would be best to split the campaigns CSS into themes, and enqueue the styles in PHP at render time for each specific theme as needed.

            dpivo Dylan Pivo (Inactive)
            pcuadrad Pablo Cuadrado (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: