Page 1 of 2 12 LastLast
Results 1 to 15 of 18

Thread: Website sometimes running slow

  1. #1
    Join Date
    Oct 2011

    Website sometimes running slow

    Hi all,

    I'm struggling with a website that sometimes appears to be very slow.
    This is the website

    Sometimes it takes a lot of time, to load the backgrounds. (okay, the website has to load 7 fullscreen backgrounds, but mostly they loaded in about 5 seconds. But sometimes the website takes 30 seconds or more to load...)

    If you go to "projecten" and select a project, the project images are also loading slow. while those images are about 70kb or less? Sometimes 8 seconds for a 50kb image...?

    I'm loading the images trough ajax with Jquery. Maybe there's a download limit? I can't imagine that?

    Hope somebody can help.



  2. #2
    Join Date
    Dec 2003
    Bucharest, ROMANIA
    You have no less than 50 requests (that means 50 different things to be loaded), what else do you expect? And you images are not "70kb or less", you have 3 files about 80KB, 3 files over 150KB, and even 2 files over 200 KB. The total of your loaded files is of 1.4 MB, which is a little bit heavy, don't you think?

    Keep in mind that the files are loaded and displayed in the order of their size (in KB), the heavier the latest, thus a heavy background file will be the last to be loaded. So, it will wait till everything on the document is loaded, to be finally loaded, on its turn.

  3. #3
    Join Date
    Oct 2011
    Thank you for the fast reply.

    I know, it's a heavy website, but i'm affraid i can't reduce the number of requests or the total size (Or I have to put all the javascripts in one file. But do you think this will reduce the speed?)

    I think it's strange, that the loadtime is very inconsistent. One time it loads in 5 seconds and the other time in 30 seconds, or more.. (with deleting cash before visiting) What do you think of this?

  4. #4
    Join Date
    Dec 2003
    Bucharest, ROMANIA
    Quote Originally Posted by Roywulms View Post
    I think it's strange, that the loadtime is very inconsistent. One time it loads in 5 seconds and the other time in 30 seconds, or more.. (with deleting cash before visiting) What do you think of this?
    The loading time depends on many things: the browser, the CPU's effort, the LAN's speed (which always is variable, depending on how many users access it at the same time), the provider's capacity... And even so, if all the parameters are the same, the speed will always be different, because the data transmission is not linear across the Web.

    All your information is split, at Start, like the wagons of a train. Except that each wagon is sent in a different direction, all over the WW network, following not always the nearer Node, but the most un-ocuppied at that moment.. The wagons are re-assembled only at the Arrival, and they are displayed only when the "team" is complete. That multiple spreading of the information through the web makes the speed to be different each time. If the volume of the information is high, the differences could be considerable.
    Last edited by Kor; 10-05-2011 at 06:55 AM.

  5. #5
    Join Date
    Oct 2011
    I tried to reduce the number of request and ended by a total of 40 requests.

    In a previous post of you, you talked about my images that are over the 200kb.
    I know that, but i meant the gallery projectimages, when you select a project. those images are about 70kb or less each. the total gallery "package" per project is around 200kb to load. Those images are loaded trough ajax, so the rest of the page is already loaded. Still, some images are taking a lot of time to load.

  6. #6
    Join Date
    Oct 2011
    Edit: The loadingtime of the projectimages are mostly about 2 second. But, sometimes 20 seconds, or more.

    I can't imagine that the speed fluctuation is so high??

  7. #7
    Join Date
    Dec 2003
    Bucharest, ROMANIA
    Use Firefox, install the FireBug add-on, and go to the Net tab of the Firebug where you can see all the requests, the length of the loading process and the size of each request.

  8. #8
    Join Date
    Oct 2011
    Here are the loading times from Chrome.. It took about 30 seconds to load the page.
    As you can see, it took about 15 seconds, for a 5kb thumb.. and 23 seconds for a 200kb bg image.


    This is the network overview when you load a project:

  9. #9
    Join Date
    Oct 2011
    I just tried to load the projectscript that the website normal is loading trough AJAX.
    And this time, it was very slow: 4.2 minutes for in total 190.03KB

    You can find the page here

    This is the script:

    PHP Code:
    include ("connect.php");
    $id $_GET['id'];

    $sql3 "SELECT * FROM site_project WHERE project_id = '".$id."'";
    $res3 mysql_query($sql3);
    $info3 mysql_fetch_array($res3)){
    $project_name stripslashes($info3["project_name"]);
    $project_ontwerp stripslashes($info3["project_ontwerp"]);    
    $project_opdrachtgever stripslashes($info3["project_opdrachtgever"]);
    $project_samenwerking stripslashes($info3["project_samenwerking"]);    
    $project_content stripslashes($info3["project_content"]);    
    $project_place stripslashes($info3["project_place"]);    
    $project_year stripslashes($info3["project_year"]);    
    $name str_replace(" ","_",$project_name);
            <a class="closeproject">SLUIT DIT PROJECT</a>
            <a class="prevbtn"></a>
            <a class="nextbtn"></a>
            <div class="slideshow">
    glob($dir.'*.*') as $v)

    $v split('/'$v);
    $file end($v);
    $file != "thumb.jpg")
    '<img src="http://www.domain.nl/images/1_projecten_images/'.$name.'/'.$file.'?'.rand(1,3000).'"  width="530" height="300" alt="omschrijving"/>';
            <!-- slideshow --></div>
            <div class="projectgegevens">
            <tr><td width="150">project:            </td><td><?= $project_name ?></td></tr>
            <tr><td>ontwerp:                        </td><td><?= $project_ontwerp ?></td></tr>
            <tr><td>opdrachtgever:                    </td><td><?= $project_opdrachtgever ?></td></tr>
            <?php if(!empty($project_samenwerking))
    '<tr><td>in samenwerking met:</td><td>'.$project_samenwerking.'</td></tr>';
            <a href="includes/getpdf.php?id=<?= $id ?> " target="_blank">Download PDF</a>
            <div class="projecttekst"><?= $project_content ?></div>

  10. #10
    Join Date
    Oct 2011
    I'm sorry, but i bump this thread. I still struggling with the same problem.
    I can't imagine that the speed fluctuation is so high..

  11. #11
    Join Date
    Jan 2009
    If your on a "Shared" server, I would complain to your provider because someone else may be causing the server load to slow your site down.

    This is a common problem with shared servers, it may be an indication that the new anti-social neighbor is hogging server services at the cost and expense of everyone else ot a neighbors site got hacked and the new squatter is causing mayhem.

    Whatever the scenario, your paying for web hosting, you are entitled to some service and a quick email to complain about loading times and that the server is sluggish should prompt the company to look at the bandwidth hog. For all you know it may be a hack attempt on that companies server that eating all the bandwidth.

    My server is on a shared server but despite the average load of 1 Meg to 1.5 Meg, load times are not impacted despite the site currently containing nearly 4 Gigbytes of archives, we see no impact on service and our host has not complained about our loading.

    IMHO give your host a prod if your close enough otherwise a well crafted email will get some action. You will likely encounter the "Service Requests" and loggin in to the USER CP and have to go several bouts of emails to get refereed to tier 2 support before your complaint is escalated to tier 3 when you have moaned at someone on the phone from lack of movement on this issue.

    Good Luck

  12. #12
    Join Date
    Oct 2011
    Thank you for your reply.

    My hosting says that it has to do with the website. Is that possible? I can't imagine that one time the code is reacting fast and the other time slow..?

  13. #13
    Join Date
    Jan 2009
    I suggest that you research your hosting provider by googling them.

    Also... who is your provider?

  14. #14
    I am not expert when in comes to codes but i have to say that the content of the site such as the size videos if there is or picture can affect the loading time of the website. Of course the PC performance and the internet connection too! You can try asking the custom web design firm as well.

  15. #15
    Join Date
    Oct 2011
    My hosting provider is not a big one, it's a ICT company that host some website for their clients.

    @pennylane; I know, i've discussed this already in my previous posts. But i think the speed fluctuation is to high to blame the networkspeed.

    So, Anyone thinks it depends on the code? Otherwise i'm going to talk further with the hosting provider.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.12744 seconds
  • Memory Usage 3,031KB
  • Queries Executed 13 (?)
More Information
Template Usage (37):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (15)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (15)postbit
  • (15)postbit_onlinestatus
  • (15)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (72):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates