Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Adding timeout to widgets to speed load time

4:21 pm on Jan 16, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:May 31, 2002
posts: 157
votes: 0


I run several widgets on my site, and lately one of them has been causing severe load time due to server issues. As a result it can take my site minutes to finish loading. I can't drop the widget since it's actually making me money, but is there a way I can force it to timeout after x amount of seconds?

In addition, is there a way I can apply this timeout limit to ALL the widgets, not just the troublemaking ones, so i can ensure my site will always load within a reasonable amount of time?

I was thinking of using iFrames but unfortunately due to how my site is rendered it's not a possibility. :-(

Thanks for any help!

4:37 pm on Jan 16, 2008 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member fotiman is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 17, 2005
votes: 12

Make sure you put your script at the end of the page, right before your closing </body>. When the browser processes the script, it will block your content from being downloaded. So if you put your CSS as early as possible in your <head> and your scripts as late as possible, then your content should still be accessible to users.
4:18 am on Jan 17, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:May 31, 2002
posts: 157
votes: 0

That goes without saying for me, but sometimes if you're using sidebar widgets it's not possible. One way to address this issue was to simply badger the widget owners to shorten the timeout period for their widget until their ears bleed and they comply just to get rid of you. :-)

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members