We currently turn a <link rel="stylesheet" href="..."> into a <style> element with the resolved contents of that URL. If resolving results in a 404 html page for example, its content will be inserted into the document and mess it up completely. Things to look at and consider changing:
Put the stylesheet contents as a data URL in the link's href, instead of creating a <style> element; this was the initial approach but it was changed because of a performance problem in Firefox (could that be fixed in Firefox?).
Try send the proper Accept headers when fetching the stylesheet.
We currently turn a
<link rel="stylesheet" href="...">
into a<style>
element with the resolved contents of that URL. If resolving results in a 404 html page for example, its content will be inserted into the document and mess it up completely. Things to look at and consider changing:href
, instead of creating a<style>
element; this was the initial approach but it was changed because of a performance problem in Firefox (could that be fixed in Firefox?).