Uploaded image for project: 'TrueCommand'
  1. TrueCommand
  2. TC-1728

Enhance initial load

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done (View Workflow)
    • Priority: Lowest
    • Resolution: Done
    • Affects Version/s: 2.0-Nightlies
    • Fix Version/s: 2.0-Release
    • Component/s: WebUI
    • Security Level: Public
    • Labels:
      None

      Description

      The initial load (or loading after cache expired) of TrueCommand is very heavy, and on the wireguard connection it took over three minutes just to show the login screen. The culprit file is apparently the main webpack-ed js file, which has definitely not been minified.

      I think it would be useful to use webpack's ability to separate chunks of code for dynamic fetching when needed, which would allow more responsive loading instead of needing to stare at a blank white screen until the whole thing was downloaded.

      For instance, the login route would be downloaded first and presented, and the main dashboard (or redirected view they were going to before the login) would be fetched while in that screen.

      I as a customer was pretty confused when the site did not load immediately despite knowing I was connected and (at first) thought there was an issue with TrueCommand before I decided to open dev tools to see if there was some kind of error.

      Seen in Master-20210330

        Attachments

          JEditor

            Activity

              People

              Assignee:
              aervin Aaron Ervin
              Reporter:
              Tsaukpaetra Anthony Takata
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h