RESOLVED DUPLICATE of bug 183601183666
Safari fails to load dynamic stylesheets
https://bugs.webkit.org/show_bug.cgi?id=183666
Summary Safari fails to load dynamic stylesheets
Shimon Schwartz
Reported 2018-03-15 10:56:03 PDT
Created attachment 335862 [details] Example Summary: Safari fails to load a stylesheet via a link tag that was modified at the runtime. Steps to Reproduce: 1. create a blank html5 page 2. add a <link rel="preload" as="style" href="{ stylesheet url }"> tag 3. add a script that executes on window load event, which updates the above tag rel attribute to "stylesheet" See attached code as an example. Expected Results: CSS loads and is applied to the page Actual Results: CSS never loads This works on Safari 11.0 and older, and on all other browsers Version/Build: Safari 11.1 beta 4, both desktop and iOS
Attachments
Example (831 bytes, application/zip)
2018-03-15 10:56 PDT, Shimon Schwartz
no flags
Radar WebKit Bug Importer
Comment 1 2018-03-15 11:46:22 PDT
Antti Koivisto
Comment 2 2018-03-15 14:42:07 PDT
*** This bug has been marked as a duplicate of bug 183601 ***
Note You need to log in before you can comment on or make changes to this bug.