Please provide a runnable example.
In your case, it looks like a timing issue when the CSS file is added dynamically and the window has a percentage size.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Screenshot
Please provide a runnable example.
In your case, it looks like a timing issue when the CSS file is added dynamically and the window has a percentage size.