()
| 101 | |
| 102 | //recurse through request queue, get css text |
| 103 | makeRequests = function () { |
| 104 | if (requestQueue.length) { |
| 105 | var thisRequest = requestQueue.shift(); |
| 106 | |
| 107 | ajax(thisRequest.href, function (styles) { |
| 108 | translate(styles, thisRequest.href, thisRequest.media); |
| 109 | parsedSheets[thisRequest.href] = true; |
| 110 | makeRequests(); |
| 111 | }); |
| 112 | } |
| 113 | }, |
| 114 | |
| 115 | //find media blocks in css text, convert to style blocks |
| 116 | translate = function (styles, href, media) { |