Uploaded image for project: 'Magnolia Frontend Helpers'
  1. Magnolia Frontend Helpers
  2. MGNLFE-208

Greenbars sometimes not appearing on a SSG project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.3.0
    • 1.2.2
    • None
    • None

      We rely on the onload callback of the script element. (See PageEditorBridge#40).

      But it turns out that although the onload is called after the script is downloaded by the browser and inserted to DOM, it takes several milliseconds for the necessary functions to be loaded. See this fiddle: https://jsfiddle.net/RobSis/bgk62y9t/10/

      Currently, we delay the call by 200 milliseconds, which explains why it happens only sometimes. Something more robust will be needed, either a wait loop or some kind of callback from the PageEditor script.

        Acceptance criteria

              plequoc Phong Le Quoc
              rsiska Robert Šiška
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 8d 1.5h
                    8d 1.5h