MyBB Community Forums

Full Version: Speed Up your Forum (a lot) with asynchronous javascript (Cloudflare)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is a menu in cloudflare site that loads all javascript html pages in your site/forum as asynchronous jscript.

To be true Rocket Loader has some issues with some jquery plugins (in my wordpress site was the lightbox plugin, wich could be easily replaced). You can check one by one with Development Mode enabled in Cloudflare options.

The Goal of enabling is this: my blog and forum are loading almost instantaneously now. 'Google Webmaster Tools' checked this too and my most visited page is loading now in 7 seconds against the older 15 sec and an average (global) 6 seconds against the old 12 seconds.

If you've got Facebook and twitter 'share' buttons installed in your forum I recommend to give it a try.

- Google info about asynchronous loading: https://developers.google.com/speed/docs...rParsingJS
- Google Page Speed Tool: http://pagespeed.googlelabs.com/



July 6th

The post Editor (new thread/new reply) was affected by ROCKET LOADER. There is a fix to that. Follow this link explaining "Pagerule" (Thanks damoncloudflare).

Then add this 2 rules to your site in Cloudflare panel:

http://www.yoursite.com/forum/newreply.php* => Disable only "Performance"
http://www.yoursite.com/forum/newthread.php* =>  => Disable only "Performance" 
(2012-06-14, 12:59 PM)aglioeolio Wrote: [ -> ]There is a menu in cloudflare site that loads all javascript html pages in your site/forum as asynchronous jscript.

To be true Rocket Loader has some issues with some jquery plugins (in my wordpress site was the lightbox plugin, wich could be easily replaced). You can check one by one with Development Mode enabled in Cloudflare options.

The Goal of enabling is this: my blog and forum are loading almost instantaneously now. 'Google Webmaster Tools' checked this too and my most visited page is loading now in 7 seconds against the older 15 sec and an average (global) 6 seconds against the old 12 seconds.

If you've got Facebook and twitter 'share' buttons installed in your forum I recommend to give it a try.

- Google info about asynchronous loading: https://developers.google.com/speed/docs...rParsingJS
- Google Page Speed Tool: http://pagespeed.googlelabs.com/

I will try it when I setup my board. Thank you.
my forum load faster after enabled Rocket Loader.. Thanks Big Grin
(2012-06-14, 12:59 PM)aglioeolio Wrote: [ -> ]There is a menu in cloudflare site that loads all javascript html pages in your site/forum as asynchronous jscript.

To be true Rocket Loader has some issues with some jquery plugins (in my wordpress site was the lightbox plugin, wich could be easily replaced). You can check one by one with Development Mode enabled in Cloudflare options.

The Goal of enabling is this: my blog and forum are loading almost instantaneously now. 'Google Webmaster Tools' checked this too and my most visited page is loading now in 7 seconds against the older 15 sec and an average (global) 6 seconds against the old 12 seconds.

If you've got Facebook and twitter 'share' buttons installed in your forum I recommend to give it a try.

- Google info about asynchronous loading: https://developers.google.com/speed/docs...rParsingJS
- Google Page Speed Tool: http://pagespeed.googlelabs.com/


Thanks for the mention. Just a few quick tips:

1. Rocket Loader can inadvertently break some JavaScript and jQuery, so you should turn it off if you see anything break and report it here.

2. If Rocket Loader appears to be breaking something on a particular URL only, such as an admin section of the site, I would personally recommend setting a PageRule so it bypasses CloudFlare's cache and optional features. I would generally recommend excluding the admin section of your site as a general rule.
thanks very much

this is what i am want to find and get answer thanks very much
(2012-06-20, 11:13 PM)damoncloudflare Wrote: [ -> ]Thanks for the mention. Just a few quick tips:

1. Rocket Loader can inadvertently break some JavaScript and jQuery, so you should turn it off if you see anything break and report it here.

2. If Rocket Loader appears to be breaking something on a particular URL only, such as an admin section of the site, I would personally recommend setting a PageRule so it bypasses CloudFlare's cache and optional features. I would generally recommend excluding the admin section of your site as a general rule.

Thanks Damon.

The EDITOR for new threads and replies was broken after loading it, so apllying the pagerule to those url's fixed this...

http://www.yoursite.com/forum/newreply.php* => Disable only "Performance"
http://www.yoursite.com/forum/newthread.php* => => Disable only "Performance"
Thanks aglioeolio for the July update Smile