-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
blob links seem applied to the dom after js execution occasionally #352
Comments
@wusiquan It can happen, you need load styles first when init swiper, use |
@evilebottnawi Thank you for your replying. After digging into the waterfall, I found the parse blob stylesheet section was hehind the execution so, for temporoly solution, set the sourceMap option to false or init swiper in window.onload callback function, which let swiper plugin calculate the right value internally |
@wusiquan can you create minimum reproducible test repo, maybe we can fix it in future |
ok, please wait a while...I'll paste the repo link url |
all right, the repo has been created |
@wusiquan thanks! |
@evilebottnawi the same thanks to you. Hope it can help you reproduct. |
This also happens in a project I'm working on. But not occasionally, the styles always seems to be applied after js execution when using source maps. |
I encountered this as well in a VueJS project. After vue has rendered the page (in the Setting |
Same problem here :/. |
@4WakeStudio Not a real fix but a workaround. We now have a little util function that returns a Promise when all stylesheets have loaded. You can use that to delay code that depends on the styles being applied.
|
Not occasionally. Only safari works correctly with blob links now |
@evilebottnawi Thanks, could you also publish |
@Vlasenko we have some tasks for new release, so just wait, i think we can do release on next week |
hi, I found the sentence in README
then I enabled the
soruceMap
option, see the page in the latest Chrome(70.0.3538.110) when developing.and js seems executed before the css applied to the dom
occasionally
, for instance, the page I write usedswiper
plugin, which calculate theslideSize
would get the wrong sizeoccasionally
is it a chrome's bug? or the blob related problem?
The text was updated successfully, but these errors were encountered: