웹마스터 팁

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 )

제목 글쓴이 날짜
메인메뉴에서 2차메뉴가 1차메뉴를 따라다니는 롤오버 메뉴로 만들기 [13] 우야노 2008.05.03
제한된 시간 안에 글을 또 등록할 때 IP 금지 기능(스팸필터) 해제하기 [3] 비나무 2008.05.03
상단에 PHP 오류구문이 출력될시 [6] sbshs77 2008.05.01
최근글 - 본문 내용 뽑아내기 [9] 夜飛 2008.05.01
windows Live writer로 게시글 쓰기 [3] file tindrum 2008.04.29
홈페이지에 이미지블릿 대신 특수문자로 표현해 보기 file 팔공산 2008.04.29
링크가 걸린 글의 색을 무지개색으로 나타내기 재미니님 2008.04.29
각 페이지에 쓸 수 있는 변수명들 찾기 [6] lainfox 2008.04.29
제로보드에 BGM 달기 (대폭 수정;;) [5] Dr.Mabin 2008.04.27
졸졸이 스토커 가두어보기 2탄(보드우측에 포함된 것처럼) [1] file 갯가 2008.04.26
제로보드XE에 배경음악 달기 [4] Dr.Mabin 2008.04.26
디버그모드 변경하는 간단한 파이썬 스크립트 [4] mmx900 2008.04.23
zbxe 기본글꼴(폰트) 바꾸는 방법 [9] file 핸디지 2008.04.22
댓글창에서 프로필이미지가 없는 경우 기본이미지 출력하기 [8] file 카카달려 2008.04.19
글 순서 바꾸기 임시방편 [6] 장운주 2008.04.18
ARTLAB님 팁을 참고하여 약간 변형 & 쫄쫄이 스토커 해상도에 상관없이 달기 [3] 탑심 2008.04.18
엑소버드 음악 제로보드XE에 구겨넣기... [8] artlab 2008.04.17
수정,삭제 버튼을 "이 게시물을.."에 넣기 [1] hangoon 2008.04.16
관리자 로그인시 원하는걸 보여주자 [5] 빽짱구 2008.04.15
상단로그인..? [10] 빽짱구 2008.04.15