웹마스터 팁

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 쉬운설치에 sftp 이용하기 [6] 비나무 2011.03.15
XE 템플릿에서 $_SESSION 변수 사용하기 신평 2014.12.21
xe 에디터를 외부페이지에사용하기 [26] 정박사닷컴 2012.07.11
블루호스트(Bluehost)에서 XE 제로보드 및 텍스타일 블로그 서브도메인에 설치하기 [4] file TELSTER 2011.03.25
xe 어플 개발시 키캡 4.4.4 미만 업로드 문제 [3] Happyphp 2014.11.25
ipTIME NAS 에 설치한 XE, 다올CMS 첨부파일 버튼 무반응 해결 [1] 사이버짱 2014.11.07
XE 로만든 앱 + 푸쉬기능 구현하기 (안드로이드) [53] file Xiso 2013.10.16
XE Recruitment 파일 미추가시 에러 뿜어내는 것 처리방법 [7] 송동우님최고 2013.07.12
XE 에서 첨부파일 100% 후 사라지는 문제 [3] 야옹이맨 2014.10.28
xe 1.7.4 이상 object cache 및 template cache 적용 방법 [3] XE러버 2014.07.04
[SocialXE] 1.7.4.x 업데이트 후 SocialXE에서 '잘못된 요청입니다.' 오류가 뜨는 문제 해결하기 [15] file TUW 2014.03.26
[10원팁] 한서버에 2개이상의 xe를 사용할때 간헐적 백지문제 [4] 키스미베이베 2014.09.19
XE 그룹아이콘 레벨아이콘 아이콘샵 동시출력하기(모르는분들 있으까봐올립니다.) [1] 모앱 2013.02.22
[업데이트] [Easy Tip] [XE 1.7] XE 코어 js, css파일 jsdelivr CDN사용하기 [13] file Typhoon 2014.08.28
홈페이지 접속시 XE를 바로 실행하기 [7] ezi 2011.08.20
XE코어 업데이트(판올림) 정확한 방법 [12] 카이닉스 2012.07.30
고도몰과 xe 회원 연동하는 키 포인트 410contents 2014.09.03
socialXE 에서 로그인시 소셜로그인과 XE 로그인 동시 구현하기 file 큐우우 2014.08.31
XE에 페이스북 소셜 댓글 연동하는 방법 (페이스북 소셜댓글 달기) 기톨닷컴 2014.08.30
XE 업데이트 방법 - 제1편 (0.x.x / 1.0.x / 1.1.x / 1.2.x 에서 1.2.4 버전으로 업그레이드) [38] file Gekkou 2009.11.19