You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Blob links affects the styles later than JS execution #121
In this case, if css-loader is used with ?sourceMap option, the css will be generated as Blobs. However, it seems that it will take sometime for blob link to load. So $('.test').show(); executes before display: none; takes effect, and nothing shows up.
It's fine to print css directly on the page.
Is there any way to enable source-map without that problem?
Reacted by Vasily Malykhin, Pavel Seleznev, Elise Chant, Mathieu Barat, Dmitrii, Jérémie Boulay, Michał Gołębiowski-Owczarek, Andrew Khantulin, Mark Penner and Fred Vollmer
I have this issue too, after doing some research, I found that there was a bug preventing source maps in <style> tag from working, but it's working now for me in Chrome 56.
There's a planned feature for vNext of the style-loader that will potentially solve this problem. If you're still experiencing this issue could you give it a go and report back on whether it helps? Thank you!
Activity
Lihuanghe commentedon Jul 16, 2016
this may caused by a bug of chrome.
ref:
https://www.nccgroup.trust/uk/about-us/newsroom-and-events/blogs/2016/february/script-injected-css-will-no-longer-block-rendering-in-chrome/
https://bugs.chromium.org/p/chromium/issues/detail?id=571725
resolve:
elisechant commentedon Sep 8, 2016
This is annoying, currently my solution is to do a programmatic setTimeout to delay JavaScript execution which is gross.
How can we make the style tag blocking, not non-blocking?
This is my current "workaround":
Stack Overflow referenced here: http://stackoverflow.com/questions/39400038/how-to-ensure-that-hot-css-loads-before-js-in-webpack-dev-server
felipemsantana commentedon Feb 13, 2017
I have this issue too, after doing some research, I found that there was a bug preventing source maps in
<style>tag from working, but it's working now for me in Chrome 56.Relevant links:
#30 (comment)
https://bugs.chromium.org/p/chromium/issues/detail?id=456062
This probably would fix the relative path in
publicUrlwith source maps as well.ekulabuhov commentedon Mar 17, 2017
There's a planned feature for vNext of the style-loader that will potentially solve this problem. If you're still experiencing this issue could you give it a go and report back on whether it helps? Thank you!
PR: #165
michael-ciniawsky commentedon May 22, 2017
#219 will fix this, but there is not current timeline when this land, so please be patient :)