|
|
Urgent: Site takes higher loading time.....
|
|
|
|
spammer
Join Date: May 2005
Status:
Offline
|
|
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 http://www.direct2deal.com
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.
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: May 2004
Status:
Offline
|
|
well since you say the slowdowns are browser specific i woud tune the html they are seeing a bit. I just looked very quickly but here are some things you might want to research.
- Lots of javascript
may or may not be a large problem
- large tables
having lots of tables in a page is not exactly a great thing to do if rendering speed is important
- lots of images
make sure each image has the dimensions listed in the html so that the browsers dont have to wait for all the images to load to display the rest of the page.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Aug 2003
Status:
Offline
|
|
Originally Posted by kkeith
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 http://www.direct2deal.com
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.
It doesn't look like MySQL is your problem... I checked the size of your final HTML page and it weighs in at 656K -- that's a large page. leira's right, you need to cut down on your file size. In addition to echoing leira's comments, I'll suggest a couple ways you can do this and you can go from there.
- JavaScript: The amount of JavaScript isn't terrible, but it does add to the file size and thus the rendering time. Put your JavaScript code in a separate file (site.js or similar) and import it using [HTML]<script language="JavaScript" src="site.js">[/HTML]
- Formatting: Your code uses HTML attributes such as "bgcolor" and elements such as <FONT> everywhere -- and it's not necessary. You can specify styles for nearly ALL of your text using CSS. The CSS code can be put into a separate file and imported once at the top. On top of organizing and simplyfing the process of stylizing the site, this should drastically reduce your file size. Look here: http://www.w3schools.com/css/
- Whitespace: Not an incredibly important issue, but you do use a lot of whitespace in your HTML code, and it does add to the file size. I wrote a simple optimizer in PHP that strips unnecessary whitespace from my HTML output, saving 10-15% on file size. For your pages, it looks as though it may be even more than that. Try it out in PHP.
- Compression: Your page is pretty large, so you might want to consider Gzipping the HTML before sending it to the browser. PHP makes this fairly simple with the ob_gzhandler() callback function. Look here: http://us4.php.net/manual/en/function.ob-gzhandler.php
I'd suggest doing a bit of research on CSS, as it is the current standard and would be the best and cleanest way to reduce your file size. The last two optimizations are for additional savings later on, but concentrate on the CSS. You'll like it.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Guys, the dude is a spammer. This is his second time here, so I'm thinkin' it's time to banninate.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|