Poll: Do you like this guide?
Yes
No
[Show Results]
 
 
Thread Rating:
  • 13 Vote(s) - 3.92 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] 10 Steps for Achieving the Maximum Possible Speed for Your MyBB Forum!
#31
Just combine all of them into one. e.g use general.js as your base, then copy the content from each js file into general, make sure it is separated by a ; every time (it should be).
Reply
#32
Would loading mybb_threads and mybb_posts into memory help as well? Are there any drawbacks to that?

EDIT: Nevermind, the tables don't support it lol.
Reply
#33
(05-15-2011, 01:16 AM)lucasbytegenius Wrote:  Would loading mybb_threads and mybb_posts into memory help as well? Are there any drawbacks to that?

EDIT: Nevermind, the tables don't support it lol.

Yeah, it wouldn't be supported.
Reply
#34
Will add the CDN guide very soon, stay tuned!
Reply
#35
Wanted to share this with you as it's given me some very large improvements: http://blog.jcoglan.com/2007/05/02/compress-javascript-and-css-without-touching-your-application-code/

The idea is that you gzip individual large files (25+ KB for optimal results) which will then be loaded instead of the normal ones, decreasing page size. This requires no template edits whatsoever, just add that entry to your htaccess and go in the CPanel and make GZipped archives of individual files. The savings are huge.
Reply
#36
(05-17-2011, 03:03 AM)lucasbytegenius Wrote:  Wanted to share this with you as it's given me some very large improvements: http://blog.jcoglan.com/2007/05/02/compress-javascript-and-css-without-touching-your-application-code/

The idea is that you gzip individual large files (25+ KB for optimal results) which will then be loaded instead of the normal ones, decreasing page size. This requires no template edits whatsoever, just add that entry to your htaccess and go in the CPanel and make GZipped archives of individual files. The savings are huge.

The thing is, when you're using the CDN it is already compressed in the cache so I don't think it really would make much difference at all. Did it actually help the speed of your site, or?

Is this just for the MyBB JS files?

Thanks for the post, though! Smile

Reply
#37
(05-17-2011, 05:56 AM)Renegader Wrote:  
(05-17-2011, 03:03 AM)lucasbytegenius Wrote:  Wanted to share this with you as it's given me some very large improvements: http://blog.jcoglan.com/2007/05/02/compress-javascript-and-css-without-touching-your-application-code/

The idea is that you gzip individual large files (25+ KB for optimal results) which will then be loaded instead of the normal ones, decreasing page size. This requires no template edits whatsoever, just add that entry to your htaccess and go in the CPanel and make GZipped archives of individual files. The savings are huge.

The thing is, when you're using the CDN it is already compressed in the cache so I don't think it really would make much difference at all. Did it actually help the speed of your site, or?

Is this just for the MyBB JS files?

Thanks for the post, though! Smile

It's great for JS files and just about any large text file you're using on your server, as well as images if they haven't been compressed enough. I got done working on a site yesterday that had a 200 KB JS file which I compressed to around 70 KB using this method.
Reply
#38
Nice tutorial, just want to add you can also use google as your CDN, its free.
Reply
#39
(05-17-2011, 10:39 PM)airborne Wrote:  Nice tutorial, just want to add you can also use google as your CDN, its free.

That has limitations, you will have to pay if you get lots of visitors and it is pretty hard to manage. It's pretty hard to set up, too.


(05-17-2011, 03:26 PM)lucasbytegenius Wrote:  
(05-17-2011, 05:56 AM)Renegader Wrote:  
(05-17-2011, 03:03 AM)lucasbytegenius Wrote:  Wanted to share this with you as it's given me some very large improvements: http://blog.jcoglan.com/2007/05/02/compress-javascript-and-css-without-touching-your-application-code/

The idea is that you gzip individual large files (25+ KB for optimal results) which will then be loaded instead of the normal ones, decreasing page size. This requires no template edits whatsoever, just add that entry to your htaccess and go in the CPanel and make GZipped archives of individual files. The savings are huge.

The thing is, when you're using the CDN it is already compressed in the cache so I don't think it really would make much difference at all. Did it actually help the speed of your site, or?

Is this just for the MyBB JS files?

Thanks for the post, though! Smile

It's great for JS files and just about any large text file you're using on your server, as well as images if they haven't been compressed enough. I got done working on a site yesterday that had a 200 KB JS file which I compressed to around 70 KB using this method.

Oh okay, I'll add it in after trying it out first.

EDIT: Didn't really help for me, the CDN already compresses it before serving it Sad
Reply
#40
(05-18-2011, 05:59 AM)Renegader Wrote:  
(05-17-2011, 10:39 PM)airborne Wrote:  Nice tutorial, just want to add you can also use google as your CDN, its free.

That has limitations, you will have to pay if you get lots of visitors and it is pretty hard to manage. It's pretty hard to set up, too.


(05-17-2011, 03:26 PM)lucasbytegenius Wrote:  
(05-17-2011, 05:56 AM)Renegader Wrote:  
(05-17-2011, 03:03 AM)lucasbytegenius Wrote:  Wanted to share this with you as it's given me some very large improvements: http://blog.jcoglan.com/2007/05/02/compress-javascript-and-css-without-touching-your-application-code/

The idea is that you gzip individual large files (25+ KB for optimal results) which will then be loaded instead of the normal ones, decreasing page size. This requires no template edits whatsoever, just add that entry to your htaccess and go in the CPanel and make GZipped archives of individual files. The savings are huge.

The thing is, when you're using the CDN it is already compressed in the cache so I don't think it really would make much difference at all. Did it actually help the speed of your site, or?

Is this just for the MyBB JS files?

Thanks for the post, though! Smile

It's great for JS files and just about any large text file you're using on your server, as well as images if they haven't been compressed enough. I got done working on a site yesterday that had a 200 KB JS file which I compressed to around 70 KB using this method.

Oh okay, I'll add it in after trying it out first.

EDIT: Didn't really help for me, the CDN already compresses it before serving it Sad

Well not everybody can afford a CDN Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)