UI Events load event status code
tomalecwp w <[email protected]> Sun, 22 May 2016 23:49:13 +0200
| Newsgroups | gmane.comp.web.dom.general |
|---|---|
| Message-ID | <CAB32U3ZY4hF-VPZEQAwEkrm4YgTpRU_zcTnu_2u9CjnDiPk1=A@mail.gmail.com> |
--001a1147c6c872d1770533754b00 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Is there a reason why status code of loaded resource is not exposed to `load` event? (https://www.w3.org/TR/DOM-Level-3-Events/#event-type-load) I think, it could be very useful to have it, for example in `UIEvent.detail`. The use-case I found is with dynamically created `<link>`s (style sheets/ HTML imports). With status code given we could control behavior for 204, 205 etc. Best Regards, Tomek Wytr=C4=99bowicz https://github.com/tomalec https://twitter.com/tomalecpl --001a1147c6c872d1770533754b00 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><span style=3D"font-size:12.8px">Hi,</span><br style=3D"fo= nt-size:12.8px"><br style=3D"font-size:12.8px"><span style=3D"font-size:12.= 8px">Is there a reason why status code of loaded resource is not exposed to= `load` event? (</span><a href=3D"https://www.w3.org/TR/DOM-Level-3-Events/= #event-type-load" target=3D"_blank" style=3D"font-size:12.8px">https://www.= w3.org/TR/DOM-Level-3-Events/#event-type-load</a><span style=3D"font-size:1= 2.8px">)=C2=A0</span><br style=3D"font-size:12.8px"><br style=3D"font-size:= 12.8px"><div style=3D"font-size:12.8px">I think, it could be very useful to= have it, for example in `UIEvent.detail`.</div><div style=3D"font-size:12.= 8px"><br></div><div style=3D"font-size:12.8px">The use-case I found is with= dynamically created `<link>`s (style sheets/ HTML imports). With sta= tus code given we could control behavior for 204, 205 etc.<br><br>Best Rega= rds,</div><div style=3D"font-size:12.8px">Tomek Wytr=C4=99bowicz<br><a href= =3D"https://github.com/tomalec" target=3D"_blank">https://github.com/tomale= c</a><br><a href=3D"https://twitter.com/tomalecpl" target=3D"_blank">https:= //twitter.com/tomalecpl</a></div></div> --001a1147c6c872d1770533754b00--