웹마스터 팁

AJKJ님께서 파일을 올리신 jsdelivr cdn을 사용합니다.

http://www.xpressengine.com/22768131 <- 링크참조해주세요 ^^

장점 : 트래픽이 절감되고 저사양 서버에서 속도가 향상됩니다

단점 : 코어 수정이 어려워 집니다.

*주의 : 버전을 무조건 latest로 해놓았습니다. 구버전일 경우 pull request로 jsdelivr에 파일을 업데이트 해주시면 되시고요, 구버전의 경우 파일이 없을경우 풀 리퀘스트로 추가 해주시고 ///cdn.jsdelivr.net/xe-core/latest를 ///cdn.jsdelivr.net/xe-core/'버전명'으로 접속하시면 되십니다. XE 1.7버전에서만 동작합니다.

JQUERY관련 cdn 에드온을 해제해주셔야 합니다 ^^

방법 : xe설치경로/classes/display/HTMLDisplayHandler.php를 DIFF대로 수정하시면 되십니다. ^^

DIFF ( orgin.php는 기존 파일입니다 ^^ ) :

diff --git a/orgin.php b/HTMLDisplayHandler.php
index 809c74d..d95c7d1 100644
--- a/orgin.php
+++ b/HTMLDisplayHandler.php
@@ -407,11 +407,11 @@ class HTMLDisplayHandler
 		}
 		else
 		{
-			$oContext->loadFile(array('./common/js/jquery-1.x.min.js', 'head', 'lt IE 9', -111000), true);
-			$oContext->loadFile(array('./common/js/jquery.min.js', 'head', 'gte IE 9', -110000), true);
-			$oContext->loadFile(array('./common/js/x.min.js', 'head', '', -100000), true);
-			$oContext->loadFile(array('./common/js/xe.min.js', 'head', '', -100000), true);
-			$oContext->loadFile(array('./common/css/xe.min.css', '', '', -1000000), true);
+			$oContext->loadFile(array('///cdn.jsdelivr.net/xe-core/latest/common/js/jquery-1.x.min.js', 'head', 'lt IE 9', -111000), true);
+			$oContext->loadFile(array('///cdn.jsdelivr.net/xe-core/latest/common/js/jquery.min.js', 'head', 'gte IE 9', -110000), true);
+			$oContext->loadFile(array('///cdn.jsdelivr.net/xe-core/latest/common/js/x.min.js', 'head', '', -100000), true);
+			$oContext->loadFile(array('///cdn.jsdelivr.net/xe-core/latest/common/js/xe.min.js', 'head', '', -100000), true);
+			$oContext->loadFile(array('///cdn.jsdelivr.net/xe-core/latest/common/css/xe.min.css', '', '', -1000000), true);
 		}
 
 		// for admin page, add admin css
@@ -455,7 +455,7 @@ class HTMLDisplayHandler
 		}
 		else
 		{
-			$oContext->loadFile(array('./common/css/mobile.min.css', '', '', -1000000), true);
+			$oContext->loadFile(array('///cdn.jsdelivr.net/xe-core/latest/common/css/mobile.min.css', '', '', -1000000), true);
 		}
 	}
 


XE 1.7.5.7기준으로 수정한 HTMLDisplayHandler.php를 첨부파일에 올려두었습니다 ^^

HTMLDisplayHandler.php


---------------------------------------------------------------------------------------------------

+ 수정2

AJKJ님께서 xecore 업데이트가 되었을 때 latest로 불러오면 문제가 생길 수 있다고 하십니다.

Diff을 이용해서 수정할때 ///cdn.jsdelivr.net/xe-core/latest/를 ///cdn.jsdelivr.net/xe-core/1.7/로 수정해 주세요.

* JQuery UI는 에드온을 사용하셔야 합니다. ( http://www.xpressengine.com/index.php?mid=download&package_id=22673736 )

제목 글쓴이 날짜
제로보드 XE - 오토셋에 설치하기 [11] file 차오이 2007.08.11
ZBXE용 도쿠위키 연동소스 코드 [7] 베니 2007.10.29
티스토리에서 제로보드Xe 이전시 필독사항!! [1] file 2008.02.23
제로보드 XE나 개인 블로그에 GPS 로그(궤적)를 나타낸 구글맵 삽입하기 상오기 2009.03.21
XE용 query xml 방식으로 일반 테이블도 접근 처리 하기 [1] 라르게덴 2009.06.18
XE 왕초보를 위한 글 [13] 휘즈 2009.08.06
제로보드 XE가 갑자기 느려져서 확인해봤더니 [1] jy1664 2009.10.27
XE로 API 처리 완전 정복하기(1) [6] file 라르게덴 2009.11.02
XE최신버전에 믹시(Mixsh) 위젯(widget) 삽입하는 방법 [2] 곰이v 2010.03.21
XE 용량 효과적으로 줄이기 [13] 코스트렐리아 2010.07.30
'대표도메인'연결후 '로그인'이 안될때,,(먹통) moonlight994 2011.01.24
방명록(Guestbook)에 소셜댓글을 다는 방법(소셜 방명록?) 띵야 2011.02.13
모듈 개발하실때 새로운 버전이 나오면 알림 기능 만들기 [4] file 라르게덴 2011.02.24
내 PC에서 XE 빠르게 설치하는 방법 [7] 차오이 2011.04.10
XE 홈피에 예쁜 음악BGM 넣는 방법(프레임 분리형 플래시BGM) 푸른커튼2 2011.04.18
모듈 자동 생성기 [ModuleCreater] v0.2 (다국어 지원 기능 추가) [28] file 택피 2012.07.20
기본게시판에서 익명 선택하여 "게시글, 댓글" 작성이 가능하도록 세팅하기(sketchbook5 기준) [15] Ashon 2013.01.08
[SocialXE] 트위터 로그인시 프로필 사진이 표시되지 않는 문제 해결하기 [3] file TUW 2013.02.03
카페XE를 Domain 접속으로 설정 후 관리페이지 접속 불가할때 [1] 라르게덴 2013.08.24
[XE 1.7] 스팸필터 설정이 안되는 경우 해결 방법 [3] 퍼니엑스이 2014.02.03