iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2005, 07:22 AM
WebProWorld New Member
 
Join Date: May 2005
Posts: 4
kkeith RepRank 0
Default Urgent: Site takes higher loading time.....

Hi........

I am a beginner. I have developed website in Php/MySql. But my home page takes some more time to load in some of the browsers

Check this www direct2deal.com [ Mod Edit: link disabled - paulhiles ]

Can Mysql stored procedures help me? I don't know the concepts of stored procedures. If any buddy in group knows
pl. help me


Its very urgent. Your feedback/suggestions will be highly appreciated.
Reply With Quote
  #2 (permalink)  
Old 05-21-2005, 12:54 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

I think you need to take a look at the size of the page before you look to the problems being MySQL related.

The HTML for your home page is a whopping 600K, that's excluding images. I'd expect the HTML portion of a page to be more in the region of 10K.

I'd first break the page into categories e.g. computers, apparel and so on, then once the pages are a more sensible length if performance is still lacking then start optimising MySQL/PHP, at the moment I'd say the transfer time far outweighs the performance of MySQL/PHP
Reply With Quote
  #3 (permalink)  
Old 05-21-2005, 01:35 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

speed is absolutely right about the HTML being excessive. But it's not all that hard to fix.

First off, you've got 40 products on that opening page with fairly long descriptions. If you shave that down to 3-5 new products with shorter descriptions, you'll knock off 80-90% of your load time right there.

Note: if you still want to show the deals on other pages, you may want to look into recordset paging. Look up "PHP Recordset Paging" on Google and follow some of the code samples.

Second, get your Javascripts out of your code and put them into separate Javascript files. This will allow a slight speed increase as some browsers cache the Jscripts.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:03 AM.



Search Engine Optimization by vBSEO 3.3.0