Page 1 of 1
G-Book pageweight
Posted: Mon May 07, 2012 3:14 am
by jbun
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
I am trying to reduce my site's pageweight as it is loading slowly. I am thinking of eliminating the language files such as dutch.inc, italian.inc, german.inc, and language inc. Is it safe to remove them? Also are there any other files I can remove that are optional ?
thank you
Re: G-Book pageweight
Posted: Mon May 07, 2012 5:43 am
by Henrie
Only the languague you use is being loaded. So deleting the other language.inc files is of no consequence to your site's loading speed.
That being said, you can safely remove the language.inc files you are not using. You can see in the settings.php file at the setting $settings['language']='language.inc.php'; which language file you are using.
Greetings,
Henrie
Re: G-Book pageweight
Posted: Mon May 07, 2012 10:11 pm
by jbun
Thanks for the quick response Henrie. I will remove the language files I am not using. Also I was wondering about the emoticons. I do not want smileys to appear or be used, here is what I did:
in settings.php:
/* Allow smileys? 1 = YES, 0 = NO */
$settings['smileys']=0;
/* Maximum number of smileys per post. Set to 0 for unlimited. */
$settings['max_smileys']=1;
in sign_form.php:
I removed lines 61-73. ( to remove smileys as I read somewhere in the forum)
As of now I don't have emoticons appear anywhere in G-Book, However It seems that when users visit my site 135k of emoticons are downloaded to them, thus increasing my page-weight.
I have considered a few options:
Remove the emoticons from the templates/default/images/emoticons folder. (Not sure if that will cause any problems.) or remove the code on the templates/default/emoticons.php between lines 9 and 77, or both
I really would like to solve this so my site visitors don't have to download all those emoticon files that are not being used. This will help me speed up my page.
Re: G-Book pageweight
Posted: Mon May 07, 2012 10:47 pm
by Henrie
The settings for disabling emoticons are right.
Also removing the lines 61-73 in sign_form.php is good.
This way no new emoticons can be placed.
If there are still emoticons loaded after you made the previous modifications, they must have been placed in the guestbook already. If you do not want any emoticons to be loaded, just remove the files from your server so the browser can not display them. Most browsers will display the alternative text or a image not found text instead of the image.
If this does not help, please post a link to your guestbook, so we can take a closer look.
Greetings,
Henrie
Re: G-Book pageweight
Posted: Tue May 08, 2012 7:16 am
by Klemen
Reading through this - what kind of problems exactly are you having?
Is your *website* slow or is it just the *guestbook*?
Things like small static images (smileys) give minimum possible load on the server - they receive no server-side processing and are smaller than most HTML pages. Static images are not your real problem.
Like Henrie said language includes aren't even used except for the default one, removing them will have absolutely no effect.
If you are having slow loading problems then the problem is almost certainly somewhere else, a simple script like GBook can't bog down a server under normal circumstances. You should look at server load values, top processes, network usage, memory usage etc. to find your bottlenecks.
If you are on shared hosting it's likely other websites on the server are slowing it down. Many hosts oversell their services and put too much on one server, especially low-priced ones. Have you considered moving to another host?