Author Topic: Optimizing all forums' speeds  (Read 895 times)

0 Members and 0 Guests are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Optimizing all forums' speeds
« on: February 21, 2012, 06:08:11 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: http://headjs.com/test/script.html
With HeadJS: http://headjs.com/test/headjs.html

Here's a test done by a random user of HeadJS: http://blog.feronovak.com/2011/03/headjs-script-is-it-really-necessary.html

Source Code (17kb): https://raw.github.com/headjs/headjs/v0.96/dist/head.js
Minified Code (7kb): https://raw.github.com/headjs/headjs/v0.96/dist/head.min.js
« Last Edit: February 21, 2012, 11:07:27 pm by xboi209 »
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter


Offline CB

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: 2
    • View Profile
Re: Optimizing all forums' speeds
« Reply #1 on: February 21, 2012, 07:08:46 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.

Offline Andrew

  • Andrew at your service
  • Global Moderator
  • *****
  • Posts: 174
  • Karma: 11
  • Gender: Male
    • View Profile
    • The Tech Cadet Blog
Re: Optimizing all forums' speeds
« Reply #2 on: February 21, 2012, 07:37:18 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.

+1
Please do not PM for support. General Support FAQ | Guides Index | Code Index

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Optimizing all forums' speeds
« Reply #3 on: February 21, 2012, 10:46:42 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: http://headjs.com/test/script.html
With HeadJS: 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.
« Last Edit: February 21, 2012, 10:59:25 pm by xboi209 »
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
655 Views
Last post March 28, 2011, 10:32:55 pm
by hassanxi
0 Replies
285 Views
Last post August 03, 2011, 12:18:56 pm
by Professional
4 Replies
509 Views
Last post January 04, 2012, 11:50:20 pm
by putapolla
3 Replies
640 Views
Last post December 05, 2011, 10:29:02 pm
by CreateAForum
1 Replies
262 Views
Last post January 18, 2012, 04:11:03 am
by CreateAForum