Skip to content

Commit

Permalink
improved comment with a credit to @dvelyk
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed Jan 27, 2012
1 parent 7b9b38d commit 984eb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion respond.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
ss.media = i;

//originally, ss was appended to a documentFragment and sheets were appended in bulk.
//this caused crashes in IE in a number of circumstances, such as when the HTML element had a bg image set
//this caused crashes in IE in a number of circumstances, such as when the HTML element had a bg image set, so appending beforehand seems best. Thanks to @dvelyk for the initial research on this one!
head.insertBefore( ss, lastLink.nextSibling );

if ( ss.styleSheet ){
Expand Down

0 comments on commit 984eb4e

Please sign in to comment.