페이지 로딩 속도 문의입니다 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

페이지 로딩 속도 문의입니다 정보

페이지 로딩 속도 문의입니다

본문

상단 메인 메뉴나 좌측 메뉴...그리고 최신글등...에서 head.php 와 tail.php 의 문서가 너무 길면 알아보기가 힘들어서...
 
대부분은 다른 문서를 만들어서 인클루드해서 이용하고 있습니다..
 
그런데...인클루드하고 그냥 페이지에 바로 작성하는 것하고 속도에 차이가 있나요..
 
상단과 좌측의 메뉴를 이곳에 올라와 있는 자동메뉴로 하는 것과 메뉴를 일일이 타이핑해서 적는 것과는 혹시 속도 차이가 나는 것일까요...
 
제가 만든 사이트에서 가끔 페이지 로딩시 멈추는 현상이 발생하는데 왠지 몰라서 문의드립니다..
 
잘 되다가 갑작스럽게 로딩시 멈추는 현상이 가끔발생하네요..
 
 
방문하시어 속도좀 한번 봐주세요ㅛㅛ
  • 복사

댓글 전체

TTL은 115까지 나오고... 홈페이지를 켜놓고 성능을 보니 CPU를 거의 100% 먹는군요.
갑작스럽게 멈추는지 아닌지는 모르겠습니다만
여러모로 손봐야 할 부분이 많을 듯 합니다.
전체 구조를 모르므로 뭐라 말씀드리긴 힘들지만요.
음.. 특별한게 뭔가 숨겨놓으신것이 없으시다면 밤에 몰래 상단 플래시를 빼보시지요.
가만히 놔둬도 CPU점유율이 높은걸 봐선 플래시쪽도 확인을 해봐야 할것 같아서요.
혹시 봐주실수 있으신지요....head.php 와 tail.php 입니다..

==========head.php=========================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/gnusr/my_common.php");//환경설정 파일

//print_r2(get_defined_constants());


$table_width = 900;
?>
<!--링크테두리 한방에 없애기-->
<style>
img{border:none}
</style>

<!--링크점선한방에 안보이기
<head>와 </head> 사이에 아래 소스만 넣으면 <a> 태그 안에 따로 onfocus='blur()'  를 입력하지 않아도 모든 <a>태그에 적용이 돼서, 클릭할 때 생기는 점선이 나타나지 않게 됩니다. -->
<script language="JavaScript">
function autoBlur(){
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")
  document.body.focus();
}
  document.onfocusin=autoBlur;
</script>

<script>
function MainMenu(menu){
 if(menu=="m1"){
location.href="<?=$g4[path]?>/hard/"; //웹하드링크
  }else if(menu=="m2"){
      location.href="<?=$g4[path]?>/music.php"; //음악실링크
  }
  else if(menu=="home"){
      location.href="<?=$g4[path]?>/index.php"; ///로고링크
  }
}
</script>
<!--iezn_embed_patch.js 는 플래시 사각테두리 없애줍니다 -->
<script type="text/javascript" src="<?=$gnusr['js']?>/iezn_embed_patch.js"></script>
<link rel="stylesheet" href="<?=$gnusr['css']?>/style_one.css" type="text/css">
    <STYLE TYPE="text/css">
        <!--
        BODY { background-image : url(<?=$gnusr['img_bg']?>/bg.gif);
                background-attachment : fixed }
        //-->
    </STYLE>
<table width=900 border="0" cellpadding="0" cellspacing="0">
<!---------------여기부터 상단-------------------------------------->
<tr>
<td valign=top  align=center height=96>

<table border="0" height=96 cellpadding="0" cellspacing="0">
    <tr>
        <td width="150" rowspan="2">
          <? include_once("$gnusr[doc]/logo.php"); //서원중 플래시로고 ?>
        </td>
        <td width="750" align=right>
          <? include_once("$gnusr[menu]/menu_top.php"); //상단메인메뉴 ?>
        </td>
    </tr>
    <tr>
        <td width="750">
          <? //include_once("$gnusr[menu]/menu_main_garo.php"); //상단메인메뉴_가로형 ?>
  <? include_once("$gnusr[menu]/menu_main_sero.php"); //상단메인메뉴_세로셩 ?>
        </td>
    </tr>
</table>

</td></tr>
<tr><td height=150>
<table border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="900" height=150 background="<?=$gnusr[img_bg]?>/main_swf_bg.gif">
            <? include_once("$gnusr[doc]/main_swf.php"); //서원중 메인플래시 ?>
        </td>
    </tr>
</table>
     

</td></tr>
<!---------------여기까지 상단-------------------------------------->
<!---------------여기부터 중앙-------------------------------------->
<tr>
<!---------------여기부터 중앙 좌측셀-------------------------------------->
<td valign=top>
<table border="0"><tr><td width=20 valign=top>
<table width=20 border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15" height="13">
<img src="<?=$gnusr[img]?>/out_01.gif" width="15" height="13" alt=""></td>
<td background="<?=$gnusr[img]?>/out_02.gif"  height="13">
</td>
<td width="15" height="13">
<img src="<?=$gnusr[img]?>/out_03.gif" width="15" height="13" alt=""></td>
</tr>
<tr>
<td background="<?=$gnusr[img]?>/out_04.gif" width="15" >
</td>
<td bgcolor=#FFFFFF>
      <!-----------로그인 박스-------------->
 <?=outlogin("lonecat_basic"); // 외부 로그인 ?>
 <br>
</td>
<td width="15" background="<?=$gnusr[img]?>/out_06.gif">
</td>
</tr>
<tr>
<td width="15" height="15">
<img src="<?=$gnusr[img]?>/out_07.gif" width="15" height="15" alt=""></td>
<td background="<?=$gnusr[img]?>/out_08.gif"  height="15">
</td>
<td width="15" height="15">
<img src="<?=$gnusr[img]?>/out_09.gif" width="15" height="15" alt=""></td>
</tr>
</table><br>
 <!------왼쪽 메뉴 삽입--------------------------------------------------------->
 <table  width="20"  border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="9" height="8">
<img src="<?=$gnusr[img]?>/out_line_m_01.gif" width="9" height="8" alt=""></td>
<td background="<?=$gnusr[img]?>/out_line_m_02.gif"  height="8">
</td>
<td width="11" height="8">
<img src="<?=$gnusr[img]?>/out_line_m_03.gif" width="11" height="8" alt=""></td>
</tr>
<tr>
<td background="<?=$gnusr[img]?>/out_line_m_04.gif" width="9">
</td>
<td bgcolor=#FFFFFF>
        <?
          include_once("$gnusr[menu]/menu_sub.php");
          ?>
          <?
          if ($gr_id) {
          include_once("$gnusr[menu]/menu_".$gr_id.".php");
        } else {
        include_once("$gnusr[menu]/menu_gm1.php");
                }
          ?>
  </td>
<td background="<?=$gnusr[img]?>/out_line_m_06.gif" width="11">
</td>
</tr>
<tr>
<td width="9" height="10">
<img src="<?=$gnusr[img]?>/out_line_m_07.gif" width="9" height="10" alt=""></td>
<td background="<?=$gnusr[img]?>/out_line_m_08.gif"  height="10">
</td>
<td width="11" height="10">
<img src="<?=$gnusr[img]?>/out_line_m_09.gif" width="11" height="10" alt=""></td>
</tr>
</table>
<!---------------------방문자 삽입 시작-------------->
<br>
<?//=connect(); // 현재 접속자수 ?>
 <?//=visit("basic"); // 방문자수 ?>

<!---------------------방문자 삽입end---------------->

</td>
<!--------------------여기까지 중앙 좌측셀 --------------------------------------------------->
<!--------------------여기부터 중앙 우측셀 --------------------------------------------------->

<td align=center valign=top>
<table width=690 border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15" height="13">
<img src="<?=$gnusr[img]?>/out_01.gif" width="15" height="13" alt=""></td>
<td background="<?=$gnusr[img]?>/out_02.gif"  height="13">
</td>
<td width="15" height="13">
<img src="<?=$gnusr[img]?>/out_03.gif" width="15" height="13" alt=""></td>
</tr>
<tr>
<td background="<?=$gnusr[img]?>/out_04.gif" width="15" >
</td>
<td bgcolor=#FFFFFF valign=top >
<div style='height:18px;'></div>
<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
    vertical-align:top;
    float:left;
}
#middiv #mleft  { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>
<font color=#FFFFFF>


=================tail.php=======================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>
           
</td>
<td width="15" background="<?=$gnusr[img]?>/out_06.gif">
</td>
</tr>
<tr>
<td width="15" height="15">
<img src="<?=$gnusr[img]?>/out_07.gif" width="15" height="15" alt=""></td>
<td background="<?=$gnusr[img]?>/out_08.gif"  height="15">
</td>
<td width="15" height="15">
<img src="<?=$gnusr[img]?>/out_09.gif" width="15" height="15" alt=""></td>
</tr>
</table>
<br>
<!------------가운데 배너 영역-------------------->
<table width=100% border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" align=center>
  <? //include_once("$gnusr[doc]/index_banner.php"); //index 교육기관스크롤배너  ?>
</td></tr></table>
<!------------가운데 배너 영역-------------------->


</td></tr></table>

</td></tr>

<tr><td align=center>
<br>
<? include_once("$gnusr[doc]/copyright.php"); //카피라이트?>
</td></tr>
</table>

            <? //include_once("$g4[path]/r_scroll.php"); //오른쪽 스크롤 빠른메뉴 ?>
<?
include_once("$g4[path]/tail.sub.php");
?>


=================
특별한 것은 쓴것도 없습니다..만.............................부탁드립니다...

무엇이 CUP 를 괴롭힐까요...

진짜 답답합니다...............
어라...지금보니 안남는 것 같네요...눈이 안좋아졌나..@.@
그대신 방금방문해보니 레이어 팝업창이 뜰때 속도가 현저하게 낮아지네요..

레이어팝업창을 오늘은 안띄우기하면 그런데로 속도괞잖은데요./
© SIRSOFT
현재 페이지 제일 처음으로