MyBB Hacks

Full Version: Image dimensions in X_Threads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Well, as long as its secure and does not affect performance - yup, I can try that Smile
Assuming you've reverted back to original the core edit in your post above, try something like this:

In the Manage Post Icons in Admin CP, edit each of your post icons, and put something like this in the Image Path field (example for the Big Grin post icons):

Code:
images/icons/biggrin.gif" width="16" height="16


Do that for the Smilies too.

Personally, IMO, putting in dimensions is going to have a relatively small impact on loading time.  At least for browsers like Firefox which can render pages before images are loaded.
Well, I think that too, and that google are just being an ass re using arbitrary page speed results for a part of their page ranking calculations (its strongly hinted that is what they will do).

My biggest issue remains the javascript and getting it GZipped and concatenated. I can't seem to get that right. So far, I have only succeeded in breaking the collapse function Frown
(03-02-2011 04:03 PM)leefish Wrote: [ -> ]Well, I think that too, and that google are just being an ass re using arbitrary page speed results for a part of their page ranking calculations (its strongly hinted that is what they will do).
They mainly consider excessively slow pages, and the effect is extremely low.
I seriously wouldn't be worrying about it.

(03-02-2011 04:03 PM)leefish Wrote: [ -> ]My biggest issue remains the javascript and getting it GZipped and concatenated. I can't seem to get that right. So far, I have only succeeded in breaking the collapse function Frown
You can just use mod_deflate to have it compressed. (as your host to enable if it isn't already)
Well, I THINK it is enabled, (it says this in my php.ini )

Code:
HTTP_ACCEPT_ENCODING 	deflate, gzip, x-gzip, identity, *;q=0


Code:
zlibZLib Support 	enabled 
Stream Wrapper support 	compress.zlib:// 
Stream Filter support 	zlib.inflate, zlib.deflate 
Compiled Version 	1.2.3 
Linked Version 	1.2.3


and I have this code in my .htaccess

[/code]
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE image/jpg
</IfModule>
[/code]

My board is in a sub-directory  http://www.leefish.nl/mybb/ and I have my .htaccess file in the mybb directory.

But the stupid page speed keeps saying they are not compressed

pagespeed output Wrote:[Score: 47/100]



Enable compression

Compressing the following resources with gzip could reduce their transfer size by 125.8KiB (74% reduction).

    * Compressing http://www.leefish.nl/mybb/jscripts/prot...http://www.leefish.nl/mybb/jscripts/prototype.j could save 76.8KiB (74% reduction).
    * Compressing http://www.leefish.nl/mybb/css.php?stylesheet=65 could save 12.4KiB (77% reduction).
.......(and all the rest of my jscripts)
Off Topic:

There is one thing we can do to increase (I think) the performance in forumdisplay_threadlist (MyBB 1.6*):
Cache the forumdisplay_inlinemoderation_selectall "manually".
I think MyBB "forgot" to cache this template Biggrin
Only happens if there is at least one thread in forumdisplay_threadlist.
Bug your host about it.
BTW, don't GZip JPEGs - it's useless to do so.
Pages: 1 2
Reference URL's