+ Reply to Thread
Results 1 to 5 of 5

Thread: JS files...

  1. #1
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    JS files...

    Suppose I have 3 js files, how will it affect the load time if I compile it to a single one? Is it wise to do so?

  2. #2
    quantum1's Avatar
    quantum1 is offline x10Hosting Member quantum1 is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    near Nashville, TN
    Posts
    68

    Re: JS files...

    If you use the Mozilla Firefox browser you can install the Firebug and YSlow plugins and they will tell you more statistics than you want to know, as well as allow access to an insane level of browser debugging. In particular, YSlow will tell you load times and so forth so you can compare the separate and combined load times.
    Two rules of development:
    1) Computers work for people; People do not work for computers
    2) Maintainability is all that matters.

  3. #3
    Spasm is offline x10Hosting Member Spasm is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    10

    Re: JS files...

    Quote Originally Posted by Teensweb View Post
    Suppose I have 3 js files, how will it affect the load time if I compile it to a single one? Is it wise to do so?
    In terms of networking, it will be faster, but not anything significant or measurable. In general, you don't have to worry about how fast plain text files will be downloaded, unless it's especially large. Images and other types of media account for most of the load time on your average web page.

    When you program, you should be concentrating on the readability of your code. With how powerful computers and networks have become, making your code readable and easy to follow is more than worth it because you don't have worry about resources, and it will save you so much time if you have/want to update anything later. Unless you are developing for a server that receives alot of traffic (like several hundred hits a minute), performance is not an issue when delivering your average HTML page.

  4. #4
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: JS files...

    Well, it's always an issue, but not as much important. (loading speeds, that is)
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  5. #5
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    Re: JS files...

    Hmm, thanx for the advice..!

+ Reply to Thread

Similar Threads

  1. Cannot copy files using WebDisk
    By truffle in forum Free Hosting
    Replies: 2
    Last Post: 11-02-2008, 09:36 PM
  2. PHP + MySQL CMS system for files
    By gamerdude in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 05-27-2008, 04:48 PM
  3. Only 1998 Files In One Folder!!!!!!
    By jmaxson in forum Free Hosting
    Replies: 7
    Last Post: 03-31-2008, 10:57 PM
  4. FTP software disconnects before copying files
    By Ubung1 in forum Free Hosting
    Replies: 2
    Last Post: 02-24-2008, 03:56 PM
  5. Corrupt files from NAS over FTP
    By sandogg in forum Computers & Technology
    Replies: 1
    Last Post: 02-23-2008, 10:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers