News:

Create A Forum Installed

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

0 Members and 1 Guest are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile

Badges: (View All)
Level 6 Sixth year Anniversary Fifth year Anniversary
Re: Optimizing all forums' speeds
« 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
415 Views
Last post August 03, 2011, 12:18:56 pm
by Professional
4 Replies
624 Views
Last post January 04, 2012, 11:50:20 pm
by putapolla
3 Replies
970 Views
Last post December 05, 2011, 10:29:02 pm
by CreateAForum
1 Replies
414 Views
Last post January 18, 2012, 04:11:03 am
by CreateAForum
0 Replies
566 Views
Last post March 10, 2012, 02:02:24 am
by Andrew