// Tweaks
$config['tweaks'] = array (
'js_compression' => true, // enables compession to reduce size of javascript files
'check_templates' => false, // disables templates checking to improve template engine speed
'inline_compilation' => true, // compiles nested templates in one file
'anti_csrf' => false, // protect forms from CSRF attacks
'disable_block_cache' => true, // used to disable block cache
'join_css' => true, // is used to unite css files into one file
'allow_php_in_templates' => false, // Allow to use {php} tags in templates
'disable_localizations' => true, // Disable Localizations functionality
'disable_google_base' => true, //Disable obsolete google base functionality
);
// Cache backend
// Available backends: file, sqlite, mysql
// To use sqlite cache the "sqlite3" PHP module should be installed
$config['cache_backend'] = 'mysql';
// Template objects for processing html templates
//
$view = new SmartyEngine_Core();
$view_mail = new SmartyEngine_Core();
-----
// Template objects for processing html templates
//
$view = new SmartyEngine_Core();
$view_mail = new SmartyEngine_Core();
$view->load_filter('output','optimise');
I don’t know if anyone has mentione this but it seems to work for me.
In the
index.tpl files put this <?php flush(); ?>
[color=#ff0000]<?php flush>[/color]
I've only just started tweeting my site for going live, this seem to take 25% off loading.
As I understand it the code in the header gets done then the onpage content (this should be already ceched on the client side) so your at the point your server is doing nothing but waiting for the next request (click etc). Before it can do that it has to clear the server and so your request has to wait. But if it's already clear no waiting
add this: defer=“defer” in the [color=#282828][font=arial, verdana, tahoma, sans-serif][/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]and make it like: [/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif] [/font][/color]
[font=arial, verdana, tahoma, sans-serif][color=#282828]but be careful which files you are deferring, since it can brake your sites functionality.[/color][/font]
add this: defer=“defer” in the [color=#282828][font=arial, verdana, tahoma, sans-serif][/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]and make it like: [/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif] [/font][/color]
[font=arial, verdana, tahoma, sans-serif][color=#282828]but be careful which files you are deferring, since it can brake your sites functionality.[/color][/font]
[/quote]
way are you adding it to chached files? wont it empty when you clear the chache? can i add it to original file?
add this: defer=“defer” in the [color=#282828][font=arial, verdana, tahoma, sans-serif][/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]and make it like: [/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif] [/font][/color]
[font=arial, verdana, tahoma, sans-serif][color=#282828]but be careful which files you are deferring, since it can brake your sites functionality.[/color][/font]
[/quote]
When you say “be careful of which files”, what files are safe to do in 4.02?
Did anyone figure out which files to change in either version 4.0.2 or 4.0.3? We are getting a 94/88 which is much better than version 2.2.5 but I would love to figure out some of the files we need to add the “defer” too.
Am I right to assume the best place to do this on is the home page? That way your initial load will be faster where most folks will enter.
Should be the product page i guess. Since it will be the main entrance, not the home page. Eventhough “index.php” is the main entrance but people are looking for your products and click on your products not home page.
[/quote] If that's a setting of 60 for thumbnail quality, I wouldn't recommend it at all. The quality of your product photos will be so low people will be turned off from buying.
I don’t know if anyone has mentione this but it seems to work for me.
In the
index.tpl files put this <?php flush(); ?>
[color=#ff0000]<?php flush>[/color]
I've only just started tweeting my site for going live, this seem to take 25% off loading.
As I understand it the code in the header gets done then the onpage content (this should be already ceched on the client side) so your at the point your server is doing nothing but waiting for the next request (click etc). Before it can do that it has to clear the server and so your request has to wait. But if it's already clear no waiting
Please make sure you test it as I am still doing.
[/quote]
How did this work out on helping speed?
On the thumbnail quality, I would have to agree with Scott_C. Having it at 60 seems really small.
The vast majority of PHP/Apache implementations use buffered output so the php flush() has virtually no affect until either the buffer is filled or the output is at the end. You can turn off buffered output, but it will put a significant load on your server.
The best thing to do would be to identify what is loading slowly and then go after that. The vast majority of “load issues” is not really content of the page(s) but all the javascript provided by merchants that runs synchronously rather than after the “document is ready”. If you have 6 of these widgets running and each takes 1 second, then you've just added 6 seconds to the load time seen by customers and/or Google.