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

[request] When loading stylesheet with ui-router, hide view until stylesheet loads #68

Open
edenworky opened this issue Jun 5, 2016 · 4 comments

Comments

@edenworky
Copy link

With sufficiently large stylesheets, there is a noticeable flicker when loading the sheet; after the HTML renders, but before the CSS is applied. Angular and uiRouter both have solutions for this issue, but angular-css doesn't support either of them natively.

ngCloak does wait until the HTML renders, but the stylesheet lags behind considerably; and I can't find a way to use angular-css inside ui-router's resolve. Support for either of these would be fantastic. Personally, I think the ngCloak approach is more "Angular", but there needs to be a way to wait for the stylesheet before showing the page.

Thank you so much for an otherwise amazing project! This feels like one of those things that are so obvious it's weird they're not built into Angular as it is. Keep up the good work! 😁

@alexcastillo
Copy link
Member

Thanks for the feedback @edenworky!
I'll take a look and see how we can approach this problem.

@1vanov
Copy link

1vanov commented Jul 6, 2016

So when it's will be fixed?

@jraoatlogic
Copy link

One simple fix without touching any of the code is something like this: http://stackoverflow.com/a/21297361, basically you apply a display:none class to the part of the html you'd like to cloak, then uncloak it in your dynamically loaded css.

@jrayga
Copy link

jrayga commented May 3, 2020

Would this still be implemented or is this project has already been abandoned?

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

No branches or pull requests

5 participants