Skip to content

A non-body element marked "unresolved" still gets shown during boot #507

Description

@JanMiksovsky

Since the Polymer bootstrap process can take a while to resolve imports, upgrade elements, etc., I want to show a loading progress indicator until polymer-ready. For this to work, I need to be able to mark an element within the body as unresolved. (If I marked the body itself unresolved, the loading indicator wouldn't appear.)

See http://jsbin.com/kaseye/6/edit for an example of what I'm trying to do. This used to work. That is, marking an element within the body as unresolved kept it hidden until polymer-ready. However, I've just tried a Bower update, and now the element marked unresolved is shown before elements are upgraded.

(A production example can be found on the home page at http://component.kitchen, which currently uses a slightly older Polymer build that handles this as desired.)

For comparison, see http://jsbin.com/kaseye/7/edit for a variant with "unresolved" on the body element. Here the whole body is properly hidden until elements are upgraded. That's fine, but as noted above, it doesn't permit use of a loading indicator.

Activity

  1. sjmiles commented on May 17, 2014

    @sjmiles
    Contributor

    Polymer will remove the unresolved attribute for you, but you have to provide your own style to effect unresolved in the first place.

    We do this for you only for body.

    http://jsbin.com/wediq/1/edit

  2. JanMiksovsky commented on May 22, 2014

    @JanMiksovsky
    Author

    I had already been using my own unresolved style (Scott's suggestion), but had still hit this bug. However, this week the problem seems to have gone away with a more recent Polymer build, so I'm closing this.

  3. sjmiles commented on May 22, 2014

    @sjmiles
    Contributor

    Thanks for your patience, Jan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions