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

Greenbars sometimes not appearing on a SSG project

    XMLWordPrintable

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

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