DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Suggestions
*****************************************************
#Post#: 3699--------------------------------------------------
Optimizing all forums' speeds
DIR By: xboi209
Date: February 21, 2012, 12:08 am
---------------------------------------------------------
I've noticed in the source code that Create A Forum forums uses
a lot of the <script src=""></script> tag but I learned a couple
weeks ago of this really good script that can optimize and speed
up load times of your website. It's called HeadJS(headjs.com)
and the script allows you to organize your coding and can load
multiple scripts at the same time.
You can test the speeds yourself, there's a page that will load
5 scripts and then you can compare with a page loading 5 scripts
but with HeadJS:
Without HeadJS:
HTML http://headjs.com/test/script.html
HTML http://headjs.com/test/script.html
With HeadJS:
HTML http://headjs.com/test/headjs.html
HTML http://headjs.com/test/headjs.html
Here's a test done by a random user of HeadJS:
HTML http://blog.feronovak.com/2011/03/headjs-script-is-it-really-necessary.html
HTML http://blog.feronovak.com/2011/03/headjs-script-is-it-really-necessary.html
Source Code (17kb):
HTML https://raw.github.com/headjs/headjs/v0.96/dist/head.js
Minified Code (7kb):
HTML https://raw.github.com/headjs/headjs/v0.96/dist/head.min.js
#Post#: 3700--------------------------------------------------
Re: Optimizing all forums' speeds
DIR By: CB
Date: February 21, 2012, 1:08 pm
---------------------------------------------------------
Is this post directed toward those that work on CAF codes and
perhaps they can do the necessary adjustments for the increase
speed? I'm all for this. Faster is better.
That's what she said.
#Post#: 3701--------------------------------------------------
Re: Optimizing all forums' speeds
DIR By: Andrew
Date: February 21, 2012, 1:37 pm
---------------------------------------------------------
--- Quote from: CB link ---
>
> Is this post directed toward those that work on CAF codes and
perhaps they can do the necessary adjustments for the increase
speed? I'm all for this. Faster is better.
>
>
> That's what she said.
>
--- End Quote ---
+1
#Post#: 3704--------------------------------------------------
Re: Optimizing all forums' speeds
DIR By: xboi209
Date: February 21, 2012, 4:46 pm
---------------------------------------------------------
Well codes on CAF aren't usually hosted externally on another
website so this doesn't apply to all codes here on CAF. However
this is mainly directed towards all CAF forums using codes or
not. The <script src=""></script> tag can load up codes from
another website, the problem is that if you have more than 1 of
these, they can slow down your forum because one code has to
load up first before the other one can. Images on websites load
up at the same time without waiting for one to load first then
let the second one load.
You can test the differences, there will be 5 codes loaded and
there is a website that will show you how long that took to load
from your internet browser(all internet browsers are different
at loading pages, IE9 is proven to load VERY faster than other
browsers). After that, you can go to another page with the same
5 codes but with this new feature and it'll also show you how
long that loaded as well.
Without HeadJS:
HTML http://headjs.com/test/script.html
With HeadJS:
HTML http://headjs.com/test/headjs.html
Also, there's a couple improvements for loading CSS coding too
plus there's features like detecting screen width and height
then you can choose what image to display based on that.
Something that I might be interested in is that HeadJS enables
HTML5 which currently browsers haven't fully supported yet.
*****************************************************
Page 1 of 1