Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
JanMiksovsky opened this issue May 17, 2014 · 3 comments
Closed

Comments

@JanMiksovsky
Copy link

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.

@sjmiles
Copy link
Contributor

sjmiles commented May 17, 2014

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

@JanMiksovsky
Copy link
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.

@sjmiles
Copy link
Contributor

sjmiles commented May 22, 2014

Thanks for your patience, Jan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants