Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder vw98034's Avatar
    Join Date
    Feb 2004
    Posts
    196
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Compress Resource Files

    Google Page Speed tells me that I need to compress resource files to speed up the download time. I follow the instruction to gzip the Javascript files and replace the .gz file with Javascript files in the same directory. But I get an error on Javascript and ask to install it. I open the zip file and it seems to be right.

    What is wrong?
    A fresh approach of web site directory - open source, useful, dynamic: bookmark, web site directory, and reminder

  • #2
    Regular Coder
    Join Date
    May 2010
    Location
    Bathurst, Australia
    Posts
    180
    Thanks
    1
    Thanked 22 Times in 22 Posts
    I assume it's talking about images. A js file is what? A few kilobytes?

  • #3
    Regular Coder vw98034's Avatar
    Join Date
    Feb 2004
    Posts
    196
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by BulletTimeBill View Post
    I assume it's talking about images. A js file is what? A few kilobytes?
    Can you compress image files for web page download? My site has quite few images on the main pages. They are slow, very noticeable particularly for oversea users.

    For my case, the Page Speed says I can cut down CSS and Javascript file sizes. It doesn't say anything on image file compression.
    Last edited by vw98034; 04-01-2011 at 11:06 PM.
    A fresh approach of web site directory - open source, useful, dynamic: bookmark, web site directory, and reminder

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by BulletTimeBill View Post
    I assume it's talking about images. A js file is what? A few kilobytes?
    few kilobytes in few files could mean something. Also if you load them from google or yahoo you need to wait for connections, send/recive few times headers, response.
    This means a bigger load time.

    Quote Originally Posted by vw98034 View Post
    Can you compress image files for web page download? My site has quite few images on the main pages. They are slow, very noticeable particularly for oversea users.

    For my case, the Page Speed says I can cut down CSS and Javascript file sizes. It doesn't say anything on image file compression.
    css, js, usualy removing blank spaces, renaming variables and identifieres, classes to shortes names, i'm not sure about this but , you can find some tools.

    http://analyze.websiteoptimization.com/wso

    images are usualy compressed. what you can do is in some cases to put one or more in a single one and use css to display only some parts of it as you need. Also reduce number of colors, image size, resolution, remove exif, included thumbnails. As before, i'm not sure but probably you can find some tools too.

    best regards

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Using server-side compression will save you more bytes than removing whitespace ever will. If you get rid of spaces your files become essentially unmaintainable anyway.

    Reducing image file sizes depends entirely on the file format of the images you're using.

  • #6
    New to the CF scene
    Join Date
    Mar 2011
    Location
    Virginia
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post
    regarding compress images - you cannot really compress but we can sprite all images in to one image to reduce HTTP requests.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •