2012-10-03 4 views
3

IE 8에서 작동하는 미디어 쿼리를 얻으려고하고 있습니다. 개발 중에는 Respond.js이 잘 작동하고 있습니다. 그러나 이것을 프로덕션 환경 인 Respond.js에 배포하면 마법이 작동하지 않습니다. GitHub의 지침에 따라 CDN (S3 & Cloudfront 사용)을 설정하고 모든 javascript 및 respond-proxy.html 파일을 지정한 URL에서 사용할 수 있도록했습니다.Django, CloudFront 및 respond.js

WARNING Wed, 03 Oct 2012 15:22:13 +0000 base xxx xxxxxxx Not Found: /https://dxxxxxxxxxxxx.cloudfront.net/j/r/respond-proxy.html 

/https://d...을 찾기 위해 노력하고 있다고 나타납니다

내 현재의 이론은이 장고 로그인 내 장고에서이 라인에 의해 입증, 특히, 길을 따라 어딘가에 Respond.js 'AJAX를 중지된다는 것이다 로컬 서버에서. 이 줄은 페이지 요청 당 여러 번 나타납니다. 내 다른 JS 그대로 내 CSS는, 장고 압축기를 사용하여 압축

<link rel="stylesheet" type="text/css" media="screen" href="https://dxxxxxxxxxx.cloudfront.net/static/css/style.css" /> 
<script type="text/javascript" src="/static/js/respond.src.js"></script> 
<link href="https://dxxxxxxxxxx.cloudfront.net/static/js/respond-proxy.html" id="respond-proxy" rel="respond-proxy" /> 
<link href="/static/js/respond.proxy.gif" id="respond-redirect" rel="respond-redirect" /> 
<script type="text/javascript" src="/static/js/respond.proxy.js"></script> 

참고 :

여기에 코드입니다. 위의 코드는 {% compress %} 블록 외부에 있습니다.

답변

1

밝혀졌습니다.이 기능을 사용하려면 respond.proxy.js를 해킹해야했습니다. respond.proxy에서 (아마입니까?) 버그이 내 페이지에서 실행중인 다른 JS에 의해 발생했을 수 있음을

//   href = bref + href; 

주, 그리고하지 않을 수 있습니다 : 나는 checkBaseUrl()에서 라인 (74) 댓글을 달았습니다. js.

관련 문제