Like Tree2Likes
  • 2 Post By quzah

What's at js.cprogramming.com that is so slow?

This is a discussion on What's at js.cprogramming.com that is so slow? within the General Discussions forums, part of the Community Boards category; What is it at js .cprogramming.com that is so slow? Every link I click here goes there and hangs for ...

  1. #1
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826

    What's at js.cprogramming.com that is so slow?

    What is it at js.cprogramming.com that is so slow? Every link I click here goes there and hangs for five seconds or so before deciding to draw the page or not.

    edit - by five I of course meant fortyfive.


    Quzah.
    Last edited by quzah; 07-21-2011 at 03:45 PM.
    Hope is the first step on the road to disappointment.

  2. #2
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    971
    js.cprogramming.com is one of the subdomains used for serving status content via a CDN. Generally, js.cprogramming.com hosts CSS and JS. There's also im.cprogramming.com, for images, av.cprogramming.com, for avatars, and static.cprogramming.com for other content. (The point of having multiple is to allow browsers to download more content in parallel.)

    So in theory, these should _increase_ page load speed rather than slow it down. Have you seen consistent problems with js.cprogramming.com, and is it continuing right now? It's possible that there was a transient issue with the CDN.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It's fine currently, but for about four hours or so today it was really bad, at least for me.


    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    It was horrible for me late last night and then for most of the day today as well.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  5. #5
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    971
    Is yesterday the first time this has happened, or have you experienced similar problems in the past? In theory a CDN should be more responsive rather than less, since it has caches around the world, but as a result, it's also more difficult to know if there's a problem since it might affect only a specific geographic region. For example--I haven't run into any problems here in the US.

  6. #6
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Yesterday, and the night before was the only real time I noticed anything that frustrating. Besides for the usual slow down around midnight PST(western US, not a canuck ) for only a couple of minutes. I am not sure if you have any maintenaince routines scheduled, of course that could just be on my end with whatever my ISP is doing.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  7. #7
    Registered User
    Join Date
    Jun 2005
    Posts
    6,427
    Quote Originally Posted by webmaster View Post
    Is yesterday the first time this has happened, or have you experienced similar problems in the past? In theory a CDN should be more responsive rather than less, since it has caches around the world, but as a result, it's also more difficult to know if there's a problem since it might affect only a specific geographic region. For example--I haven't run into any problems here in the US.
    I have noticed intermittent problems with content from the cprogramming.com domain for a few months. The most common symptoms I have noticed are associated with problems are js.cprogramming.com and im.cprogramming.com (firefox waiting while showing a status indicator that it is trying to connect to those sites, or awaiting content).

    The typical symptom is a long time loading and, in worst case, incomplete content being rendered in my browser. I don't tend to see messages referring to lost connections or timeouts (eg HTTP errors 404 or 408).

    I always attributed the symptoms to the domain being in the US (since I am in Australia) and that I'm using a slowish ADSL connection.
    Right 98% of the time, and don't care about the other 3%.

  8. #8
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    971
    Thanks, I did some experiments using http://webpagetest.org and found that absent these kinds of slowdowns using a CDN is noticeably faster both here in the US and in, say, India (MaxCDN does not have data centers in Asia, so it approximately the experience of being far away from their servers).

    However, I also noticed that the site wasn't adding cache control headers for static content like that being served by js.cprogramming.com (or, for that matter, the main header image). So what I've done is added a 1 day cache for the JS and CSS files served via js.cprogramming.com, so that if there *is* a problem with it, you should only need to get the download once for that day and the browser can continue to cache it until the problems abate. (The reason for caching only for 1 day is that caching this stuff makes it a pain to update the forum--I have to turn off the cache in advance of updating to ensure that new JS and CSS will be picked up.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. QT GUI is very slow.
    By System_159 in forum C++ Programming
    Replies: 1
    Last Post: 04-08-2011, 11:49 PM
  2. g++ is very slow when compared to cl
    By manav in forum Tech Board
    Replies: 51
    Last Post: 04-02-2008, 12:25 PM
  3. slow if-else
    By Ideswa in forum C++ Programming
    Replies: 9
    Last Post: 03-02-2006, 11:51 AM
  4. slow function
    By joed in forum C Programming
    Replies: 7
    Last Post: 07-17-2005, 11:24 AM
  5. Program is slow. Help
    By jjj93421 in forum C++ Programming
    Replies: 14
    Last Post: 08-08-2004, 07:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21