CF8 Ajax: Quick Tip for Shrinking the Page Size

In chatting with Adobe, one thing that came out was that their Ajax indicator (the spinning activity indicator) had not be optimized. Since this is just an animated .gif file, its an easy replacement.

Just go to \CFIDE\scripts\ajax\images and replace loading.gif with another image. You can get other indicators at:

ajaxload.info napyfab

Since they're just images, simply right-click on the image and save it down. Then drop it into the folder specified above.

You will need to rename your new image to loading.gif.

Then, clear your cache and reload your page. In my tests, doing this shredded 100k off of the page size.

Related Blog Entries

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
todd sharp's Gravatar Theres also a cool site where you can create your own loader...not sure on the file sizes...

http://cfsilence.com/blog/client/index.cfm/2007/3/...
# Posted By todd sharp | 6/6/07 11:39 AM
Jim Priest's Gravatar 100k!!!!!!

This is sort of embarrassing coming from Adobe :)

I'm thinking they need to distribute a few copies of Photoshop or Fireworks to the CF development team...
# Posted By Jim Priest | 6/6/07 2:29 PM
Scott P's Gravatar Pretty unbelievable, replaced it and now it is 4k. Thanks for the heads up.
# Posted By Scott P | 6/6/07 9:04 PM
Ashwin's Gravatar Yeah, that was kinda embarrassing, considering where I work... It's already been fixed; you'll have a neat little 2 KB loading icon in the final build.
# Posted By Ashwin | 6/7/07 1:18 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.