Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Member Arkymedes's Avatar
    Join Date
    Jun 2007
    Location
    Lons-le-Saunier, France
    Posts
    65
    Member #
    15389
    Liked
    1 times
    Hello guys,

    Apparently I cannot post in the proper place, so I'll leave it here. The mods can after move it to the Tutorials place, if they decide it's worth it.

    It's common knowledge that every KB of data saved in bandwith can do wonders for your users and your server. A fast loading web site is a must in a time when nobody has time to waste. It's good for business and it's good for you.

    Two components in every web site are key in order to achieve this goal: Images and Scripts. Unfortunately it's very common to use bloated images and scripts without the proper compression and file treatment, so it's up to the web designer this task.

    I use 3 programs to accomplish this using a command line for all the compressing and the results are really good. The programs are: JpegTran, PNGOut for the images and YUIcompressor for the JS and CSS files. Google them out if you want to find more information.

    I tried to keep it as simple and convenient for the user as possible, so I put together 2 batch scripts that can be run when you right click your web site folder. It's integrated into the Windows registry so it looks very natural and handy. After that, each script will run through all your sub-directories and look for every file that it can work with.

    STEPS

    1 - Simply unzip the folder into your C:\ disk.

    2 - You will then have 2 folders: "OptImages" and "OptScripts". Inside each one there is a REG file that you need to add to Windows in order to have the right click functionality.

    3 - Done!

    After that, just right click the folder where your web site is stored and choose to optimize the scripts or the images. Wait for the command prompt to finish it's thing and that's it. It really takes just a few seconds for the whole process.

    In my tests, I simply used a Wordpress theme as example. Originally, the theme had a total size of 1.28 MB. After the optimization, it shrinked to 1.09MB, approximately a 15% reduction.

    Keep in mind that this programs don't recompress the images, but re-organize the image headers without touching the image per se, so it's a lossless process. For the scripts, it's just a matter of eliminating empty spaces, comments and reorganizing the code.

    I hope you all like it. Enjoy!


    Cheers,
    Arky

  2.  

  3. #2
    Member Arkymedes's Avatar
    Join Date
    Jun 2007
    Location
    Lons-le-Saunier, France
    Posts
    65
    Member #
    15389
    Liked
    1 times
    Not a single input in more than a week?

  4. #3
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by Arkymedes, post: 250757, member: 15400
    Not a single input in more than a week?
    Arkymedes - it's likely that like me, people have read your post, but, also like me, they will not download files from a person they do not know.

    There are only a couple of people on these forums that I would even consider downloading files from - and those would be code files - HTML or CSS.

    What you are offering are apparently files that will alter the Windows registry - I am fairly experienced and yet I don't mess with the registry if I can possibly help it.

    Add to that the fact that many folks who read these forums are on MACs, and you'll see why, despite your good intentions, your post will probably not generate a big response.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    I'm in the same boat...that, and I haven't got anything to try it on.

    I also don't see me point of doing something like this when I can just add CloudFlare to a site and have them take care of it.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Member Arkymedes's Avatar
    Join Date
    Jun 2007
    Location
    Lons-le-Saunier, France
    Posts
    65
    Member #
    15389
    Liked
    1 times
    Hey, thanks a lot for that. I was expecting something more and I shared it because it really works good for me and it's good practice to optimize and minimify your images/scripts. The modifications in Windows registry are trivial and basic, and it's added just for convenience, it's not necessary.

    I understand the option to add CloudFlare, but it's not in their responsibility to optimize your website. 2 different things that actually makes it even faster if used properly.

    Anyway, I hope this find someone else a good use as it does for me

    Regards,
    Arky


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:04 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com