Carpe Programming/jsp & spring & jstl
[jQuery] 외부 로드로 웹 트레픽 줄이기
nolite
2013. 7. 12. 14:29
jQuery에서 제공하는 CDN : http://code.jquery.com/jquery-1.8.3.min.js
jQuery에서 제공하는 최신 jQuery CDN : http://code.jquery.com/jquery.min.js
MS에서 제공하는 CDN : http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js
Google에서 제공하는 CDN : https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
사용방법 : 기존 jQuery 로드 부분을 제거하고
<script type="text/javascript" src="위 4개중 하나"></script>
728x90
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
document.write(unescape("%3Cscript src='/Scripts/jquery-1.8.3.min.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
[참조] - http://idev.kr/Programming/886