Page MenuHomePhabricator

Split survey chooser and renderer into separate ResourceLoader modules
Open, Needs TriagePublic

Description

Currently, this extension will conditionally load client-side components only if surveys are enabled. It might help decrease bandwidth and improve page load time if we refine this so that,

  • Any enabled surveys?
    • No -> Don't load anything
    • Yes -> Load the client chooser module and enabled survey configuration
      • Chooser selected a survey?
        • No -> Stop processing.
        • Yes -> Load the render module and display the survey.

This might pair well with T254977: Server-side survey configuration filtering (further reducing the payload) and T245292: Don't lazily load messages when showing a survey (as an alternative approach where we continue to lazy-load, but inline the messages with rendering code).