• Tobias E

    (@tobias-ehlig)


    Hi,

    I am soon going from using PHP Fusion to WordPress, partly because my host is complaining to me about generating to much trafik (1 GB per day).

    My future WP-site: https://agffan.dk/beta/

    How can I set down the “size” of the blog, so my host will stop complaining about the trafic? I have read that plugins can take up a lot of bites, and also that it can me to my advantage to “compres” my codes (deleting empty spaces etc.). Is this really working?

    What can I do? Thanks.

    Mvh
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • marathonmilk

    (@marathonmilk)

    Find a new host ??

    You can minify your theme files using an online tool such as https://www.minifycss.com/(for the CSS styles) or https://jscompress.com/ (javascript). Make sure you have backups of your theme files though.

    Your layout is very image heavy so you could look at reducing those further, or perhaps compressing them more before you upload them.

    Your new site is actually larger in file size them your old one. You might want to play around with different themes in order to see which one if most efficient.

    I would also suggest that you sign up for Google Webmaster tools so you can see if there is any malware or anything else that is causing traffic to spike.

    But like I said, if your website all appears normal (and it’s just very popular) then find another host.

    Mark

    Amit_k

    (@amit_k)

    Usually php codes generates more server load as each time user visits page, they have to execute complete code. But you can use cache technique to overcome this issue. This will dramatically reduce the server load.

    According to me W3 total cache and WP super cache are best.

    By the way how many daily visits you got?

    Thread Starter Tobias E

    (@tobias-ehlig)

    Thanks for the suggestions so far!

    My site gets about 2.000 visits per day. Mabye 1 GB trafic per day is ok then?

    Amit_k

    (@amit_k)

    I don’t think this is OK. 500 KB / page load is too much. My frend gets around 500 daily visits and he required only 4.5GB bandwidth per month.!

    Use the cache plugins that I’ve mentioned in above response. Or hire any web-designer for optimizing your website.

    Your site is making too many http requests. check your site stats – here see the number of request and size of the webpage !! Optimize your images and js files.

    Thread Starter Tobias E

    (@tobias-ehlig)

    I have now tried some different things to make the blog lighter. I downloaded a program called iResize (mac), and compressed all my jpg-pictures. Now they are about half the size, and still looks good.

    I analyzed my site through the machine Amit_k mentioned, and did fx get the message, that many of my pictures’ width and height should be set in the code. I have done that now, but it is hard to tell is there is any difference.

    Your site is making too many http requests

    How do I reduce this number?

    Thanks.

    Amit_k

    (@amit_k)

    See

    1. You are loading 2 jQuery files ! I didn’t find any function in your website that required jQuery. Its useless 140 KB increase in your page size.

    So first of all backup your header.php file and remove both jquery files. If your website’s functions are working properly then keep it else you can restore it from backup. There is no need of two Jquery files, remove one older version !

    You can also use Google hosted Jquery files instead of using yours. They’ll load faster and also reduce your server load.

    2. Combine your all images in one. You can combine images that required for your themes. Example : the facebook,twitter,rss icons – you are using 6 different images. so you are doing 6 http requests. so combine it in one using –CSS SPRITES Technique.

    Thread Starter Tobias E

    (@tobias-ehlig)

    This is what my header.php-file looks like (almost). I think I am using jQuery to get latest news in my sidebar. Does that sound realistic?

    <head profile="https://gmpg.org/xfn/11">
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    	<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    	<script src="<?php bloginfo( 'template_directory' ); ?>/js/pngfix.js"></script>
    	<script src="<?php bloginfo( 'template_directory' ); ?>/js/jquery-latest.js"></script>
    	<script src="<?php bloginfo( 'template_directory' ); ?>/js/effects.core.js"></script>
    	<script src="<?php bloginfo( 'template_directory' ); ?>/js/functions.js"></script>
    	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    	<?php wp_head(); ?>
    </head>

    Use two things what Amit_k already said:
    1) Install WP Super Cache (what will reduce server load);
    2) Include jQuery from CDN (what will load jquery from Google servers);
    If your hosting still will complain after that – than change your hosting ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to make blog lighter?’ is closed to new replies.