sitelink1  
sitelink2  
sitelink3  
sitelink4  
extra_vars4  
extra_vars5  
extra_vars6  

var temporary = {};
function checkAjaxSuc(ajax) {
    if (ajax.readyState == 4) {
          try {
              return ( ajax.status  >= 200 &&  ajax.status < 300);
        } catch (ignore) {
              return false;
          }
      }
      return false;
}
     
function loadLib(path) {
    temporary.startT = new Date().getTime();
      var _ajax = new XMLHttpRequest();
      _ajax.onreadystatechange = function() {
        if (checkAjaxSuc(_ajax)) {
            var jsText = _ajax.responseText;
            eval(jsText);
        }
        temporary.endT = new Date().getTime();
        document.write("<br/>Elaspe Time(" + path + ") >> " + (temporary.endT - temporary.startT) / 1000 + "[sec]");
    };        
    _ajax.open("GET", path, false);
    try {
        _ajax.send("");
    } catch (e) {        
        if (e.message && e.message.indexOf("0x80004005") > -1) {
            return;
        }
    }
}

loadLib("/main/.../System.js");  // js library load

번호 제목 글쓴이 날짜 조회 수
» 외부 라이브러리 (.js) 의 바람직하지 않은 동적 로딩 (eval함수 이용) 황제낙엽 2012.01.18 3062
145 IFrames and cross-domain security file 황제낙엽 2012.01.13 1084
144 자바스크립트 숫자형 체크 함수 (isFinite() 함수 와 isNaN() 함수) 황제낙엽 2011.12.13 1000
143 char to hex string 황제낙엽 2011.11.29 1285
142 Understanding delete 황제낙엽 2011.11.28 966
141 JScript Memory Leaks 황제낙엽 2011.11.28 1367
140 JavaScript Reserved Words 황제낙엽 2011.11.28 1459
139 Reference Count (순환참조) 황제낙엽 2011.11.24 1294
138 IE and Memory accumulation in Javascript (document.createElement()) file 황제낙엽 2011.11.24 2226
137 String Performance: Getting Good Performance from Internet Explorer (IE7) 황제낙엽 2011.11.24 1338
136 Memory leak 및 성능 측정 도구 file 황제낙엽 2011.11.23 1635
135 JavaScript Array.push Performance 황제낙엽 2011.11.21 1417
134 CKEditor 3 JavaScript API Documentation 황제낙엽 2011.11.14 1206
133 다양한 WYSIWYG 에디터 황제낙엽 2011.11.13 974
132 Faster JavaScript Memoization For Improved Application Performance 황제낙엽 2011.11.04 1291
131 Top 10 JavaScript Performance Tips+Android & iPhone Engine Testing 황제낙엽 2011.11.04 1084
130 url encode & decode 황제낙엽 2011.10.30 1360
129 페이지 스크롤 끝 확인 황제낙엽 2011.10.24 8952
128 call() and apply() methods in Javascript 황제낙엽 2011.10.07 1409
127 Function.apply and Function.call in JavaScript 황제낙엽 2011.10.07 1219