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

Use Preact instead of core WP React on the frontend

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Must have Must have
    • None
    • None
    • 5
    • Performance
    • Sprint #161, Sprint #162, Sprint #163, Sprint #164
    • saturn

      A large part of the size of our front end bundle is because we use a version of React which is shipped with WordPress for use in the post editor. The footprint is mostly because of the dependencies of WP's React (lodash, wp-polyfill), we could also use a much lighter variant of React (Preact) as our front end code is simple enough to allow that (i.e. doesn't depend on any React features not supported by Preact).

      Tasks:

      • Set up Preact for the front end and check if using it requires any changes to our front end code.

        1. long-tasks-no-preact.png
          213 kB
          Pieter Vincent
        2. long-tasks-preact.png
          139 kB
          Pieter Vincent

            pvincent Pieter Vincent (Inactive)
            pvincent Pieter Vincent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: