웹마스터 팁

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 )

제목 글쓴이 날짜
jquery 이미지 이펙트 플러그인 Ansi™ 2014.08.19
스케치북 게시판 메뉴얼 [1] socialskyo 2014.08.21
사용자 정의를 활용하여 폼 형식으로 개발하는 무식한 방법(1) [6] Reminisce 2014.08.22
게시판의 오늘 올라온 새글의 갯수를 알아내는 방법 [8] garnecia 2014.08.22
사용자 정의를 활용하여 폼 형식으로 개발하는 무식한 방법(2) [5] Reminisce 2014.08.22
CafeXE (homepage 모듈) 메뉴노출 권한오류 수정안. Xiso 2014.08.22
홈페이지 제작 시, 개인정보관련/회원가입약관 처리에 대해서 [1] 양파F 2014.08.23
관리자페이지의 '서버정보출력'에 '절대경로' 가 출력되게 하는 방법 [3] sejin7940 2014.08.26
애드온 개발중에 이상한 버그가 생길경우 [2] 銀童 2014.08.26
관리자 게시판 목록에서 브라우저 제목 클릭시 새창으로 뜨도록 수정 [2] sejin7940 2014.08.26
XE를 앱으로, 티타늄 및 폰갭(Cordova) 사용기 [1] AJKJ 2014.08.28
[업데이트] [Easy Tip] [XE 1.7] XE 코어 js, css파일 jsdelivr CDN사용하기 [13] file Typhoon 2014.08.28
캡챠(captcha)가 안 뜰 때 Double'U' 2014.08.29
Simplestrap css, js cdn에서 로드하기 [5] file Typhoon 2014.08.29
카메론 플러그인 에드온이 컨텐츠(본문)을 가릴때 팁 file oscarmike 2014.08.30
XE에 페이스북 소셜 댓글 연동하는 방법 (페이스북 소셜댓글 달기) 기톨닷컴 2014.08.30
socialXE 에서 로그인시 소셜로그인과 XE 로그인 동시 구현하기 file 큐우우 2014.08.31
div 세로 중앙 정렬팁 Ansi™ 2014.09.01
고도몰과 xe 회원 연동하는 키 포인트 410contents 2014.09.03
모바일뷰 사용하는 경우, 사이트맵에서 메뉴 생성시, 모바일 뷰 가 자동으로 체크되도록 sejin7940 2014.09.10