Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 09, 2008, 02:48:46 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Page loading slowly or not loading  (Read 490 times)
sarahfm
Trekkie
**
Offline Offline

Posts: 15


« on: April 15, 2008, 09:43:17 AM »

Hi there,

I have recently managed to get my site online.

When I type in the url (www.yakkaforbackpackers.com)  - first it comes up with 'loading...' and then comes up on the screen, and sometimes it continues with the 'loading...' and doesn't come up.  How do I stop this???

Thanks,


Sarah  Friend
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 6766



WWW
« Reply #1 on: April 15, 2008, 09:54:05 AM »

Hi Sarah, seems to be loading up fairly quick from here.  I did notice a few things that might help your loading times.  I see you have a number of large images linked up on the main page that are resized down using code.  The problem is that you are still making the users download the large images - which will take some time. 

This test from Pingdom will give you a good idea at what is taking the longest to load on your web site.
Logged

MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3041



« Reply #2 on: April 15, 2008, 05:40:33 PM »

For example, kangaroosunset.jpg is 1600 x 1200 pixels, but you use the browser to scale it down to 210 x 158. This causes three problems: 1) you force users to download a huge file, which you're going to throw away most of; 2) user browsers must spend extra time scaling the image down (although that's not too big a hit on a fast machine); and 3) the scaled-down quality may not match what you can specify in a good photo editor (Photoshop or The GIMP). Spend a moment to scale pictures to the final size (210 x 158 in this case), and you'll save visitors a lot of transfer time (and cut your bandwidth usage at the same time). Go ahead and specify the image's width and height in the code, as this makes rendering smoother (text doesn't jump around with unnecessary resizing of the on-screen real estate).
Logged

sarahfm
Trekkie
**
Offline Offline

Posts: 15


« Reply #3 on: April 16, 2008, 06:56:35 AM »

Hi there,

Thanks for that tip - I'll resize the images before I put them on.

Sarah
Logged
sarahfm
Trekkie
**
Offline Offline

Posts: 15


« Reply #4 on: April 20, 2008, 04:25:48 AM »

I have downsized the pictures but still get the loading....command.

Actually, I have found the coding for this is in my index.php file (please see below). Actually though - I see that I have two index.php files and one called index2.php. The first index.php is straight inside the 'yakkaforbackpackers' add-on domain file (outiside my joomla15 file which contains all the other files for the website) and this is the one containing the below coding. The other index.php and index2.php files are within the joomla15 file which contains all the other files for the website.

Is there a way of changing this so it doesn't load. Can I just move some of these files around?  I am wondering whether this is a problem for SEO?Huh

Thanks very much for any help,
Sarah

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Welcome to My Site</title>
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 2000 12:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="5%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">Loading...</td>
</tr>
</table>
<script language="JavaScript1.1">
<!-- Redirect to main Page
location.replace("http://www.yakkaforbackpackers.com/joomla15/")
//-->
</script>
</body>
</html>
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3041



« Reply #5 on: April 20, 2008, 08:59:10 AM »

This index.php file you listed is the one in the root (public_html/yakkaforbackpackers/index.php)? It would be cleaner to use a <meta> tag to do the redirection, but I don't know if it will speed things up for you:

<meta http-equiv="refresh" content="0; url=http://yakkaforbackpackers.com/joomla15/" />

and remove the <script... /script> tags.

Don't go moving files around willy-nilly -- you're bound to end up with a misconfigured Joomla installation that will require some sort of repair. It shouldn't hurt you SEO-wise to have another index.php in another directory.

You said that even with the smaller image files, you're still getting "loading" messages. I tried loading the site and it does seem a bit on the slow side. I don't know if your using JavaScript to do the redirection has any effect on this -- you can certainly try my above changes and see if it's any faster. Have you resized all the other images, not just the 'roo on the beach? Are you on dialup access? Are you trying this from Australia? If so, you might do a traceroute (tracert yakkaforbackpackers.com) and see if some link is very slow.

Are you loading code from another site (say, for the RSS feeds)? Maybe they're your slow spot. Try commenting out code inclusions from other sites and see who's slowing you down. Also, what do you have in your .htaccess files (in public_html/.htaccess and public_html/yakkaforbackpackers/.htaccess)? Are you doing anything odd there?
Logged

sarahfm
Trekkie
**
Offline Offline

Posts: 15


« Reply #6 on: April 25, 2008, 02:41:00 PM »

Hi Mr PHil,

Thanks for the relpy - I changed the redirect from Javascript to your metat tag code - it's still as slow though.

Here's the content of my htaccess file.  I can only find one htaccess file straight in the yakkaforbackpackers/joomla15 folder which has all other folders and files in it.  It is an add-on domain so I don't have a public_html folder in it (I think this is why..?).  Many thanks for all your help on this.

Sarah


##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On


#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section


########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM