Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2011
    Thanked 0 Times in 0 Posts

    Strange load times: is it my Javascript?

    I'm messing around with an image sharing site: www.giffrey.com

    I've noticed two things:

    1. The nav bar loading favicon reloads on each refresh at a pretty slow rate. It tends to finish load when the .gif has fully loaded. I assume that isn't a coincidence.

    2. The stumbleupon button, which is javascript based, does the same thing - it doesn't load until the .gif is finished.

    I imagine both problems are one and the same. Can anyone shed any light on what might be causing the issue? The aforementioned scripts are below:

    <script type="text/javascript">
      (function() {
        var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
        li.src = 'https://platform.stumbleupon.com/1/widgets.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-33036980-1']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    Thanks in advance!

  2. #2
    Regular Coder
    Join Date
    Sep 2002
    Thanked 27 Times in 26 Posts
    Everything on a page is displayed in the order it's loaded. Load times vary especially if you're retrieving items from other servers/websites. It's their server response that slows things down mainly due to the number of visitors and other websites trying to access their information the same way. Example "google-analytics" millions are trying to pull info from their servers during high traffic times which causes some sites to load slower than others. The caller may have to wait until server is available.
    NO Limits!! DHCreationStation.com
    For projects using MediaTypes (MIMETypes) visit E-BAM.net -(updated weekly)

    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.

  3. Users who have thanked c1lonewolf for this post:

    Winks (07-05-2012)


Posting Permissions

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