guybedford / require-css

A RequireJS CSS loader plugin to allow CSS requires and optimization
MIT License
983 stars 364 forks source link

In IE8-9 onload does not fire in the second iframe #196

Closed bk201- closed 4 years ago

bk201- commented 9 years ago

https://gist.github.com/bk201-/2aeb7b6ff1897d8aed2a

I run on localhost test.html.

In first iframe "onload" fires twice. In second iframe onload fires once, but css is applied.

I'm using the same method as in importLoad.

This is the second iframe define (['css! first', 'css! second'], function () {    // Never called because second.css is not loaded because onload not working })

hkaikai commented 7 years ago

我也遇到了同样的问题,而且在ie9里面100%出现css无法加载问题 Have you solved this problem? I need help