From fa6fd2829f6211dfd1ca9dfb71a60e790bf4496d Mon Sep 17 00:00:00 2001 From: pjmatos Date: Fri, 20 Jun 2014 08:26:39 +0100 Subject: [PATCH 1/2] Update respond.proxy.js --- cross-domain/respond.proxy.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cross-domain/respond.proxy.js b/cross-domain/respond.proxy.js index 9322a354..419c4952 100644 --- a/cross-domain/respond.proxy.js +++ b/cross-domain/respond.proxy.js @@ -102,10 +102,12 @@ for( var i = 0, linkl = links.length; i < linkl; i++ ){ - var thislink = links[i], - href = links[i].href, - extreg = (/^([a-zA-Z:]*\/\/(www\.)?)/).test( href ), - ext = (baseElem && !extreg) || extreg; + var baseURL = checkBaseURL("/"), + thislink = links[i], + href = links[i].href, + extreg = (/^([a-zA-Z:]*\/\/(www\.)?)/).test( href ), + local = (new RegExp("^" + baseURL)).test( href ), + ext = ((baseElem && !extreg) || extreg) && !local; //make sure it's an external stylesheet if( thislink.rel.indexOf( "stylesheet" ) >= 0 && ext ){ From 5dc19e4527e2df7594b02361060be79e8d37f13a Mon Sep 17 00:00:00 2001 From: pjmatos Date: Fri, 20 Jun 2014 14:47:37 +0100 Subject: [PATCH 2/2] Update respond.js --- src/respond.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/respond.js b/src/respond.js index 58883e4b..d0e1535a 100644 --- a/src/respond.js +++ b/src/respond.js @@ -324,6 +324,9 @@ media: media } ); } + else { + break; + } } } }