Uploaded image for project: 'H5P'
  1. HFP-1691

WordPress/Moodle: Aggregate Core assets

    Details

    • Type: Task
    • Status: Backlog (View workflow)
    • Priority: High
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Labels:
      None
    • Sprint:
    • Acceptance Criteria:
      Reduce the number of requests per iframe to 4 or less.

      Description

      When the internal aggregation was made it only aggregated the content type libraries and not the core components. This was since Core only contained two .js files at the time and one css, resulting in 5 requests per iframe – now there are 13 requests.

      Two solution suggestions:
      1. Use webpack for the Core JS.
      2. Aggregate the files with PHP.

      Note that we may not want to bundle the Core JS with the content type's JS to leverage browser caching. (The browser will cache Core JS and reuse it for all content types after seeing one)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              icc Frode Petterson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified