Re: [Pueblo-Users] Snap poll: PNG pong
Brought to you by:
uecasm
From: Gavin L. <ue...@us...> - 2003-02-23 20:04:33
|
At 17:26 19/02/2003 -0500, Maxi Rose wrote: > >It's hard for me to choose between those two. In all honesty, I'm >so used to load-on-complete that it doesn't upset me. Yet, what >would be nice is when we specify the size of the image in our >Pueblo code, I'd like to see space set aside for the image like >in HTML, so that text doesn't suddenly jump or jumble to scramble >out of the way and make room for the pic. This way, a user can >go, "Ah... There's a picture there. I just have to wait for it to >load." To go further and let us have a temporary low-res image >to load in its place like you can do, would be nice. Well, according to both the code and my own tests Pueblo does in fact create a placeholder space in the output window. If you specify both of WIDTH and HEIGHT then it will be that size, otherwise it will be 8x8 pixels. Presently only an empty space is left -- there is no border or anything else visible until the image loads. In fact, that is the only function of the WIDTH and HEIGHT attributes, since Pueblo performs no image scaling, and always displays images at their proper dimensions regardless of the WIDTH and HEIGHT specified. I could change this if people think that it's a bug... though I'd rather not, since there are caching issues involved too -- in a single Pueblo session, all images that have the EXACT same URL are linked together so that they are all the same size and will animate simultaneously. Saves memory and download time. In any case, I've added a more visible placeholder (and even made it change appearance to indicate a broken or otherwise undisplayable image) to the development code, so you'll see that in action in the next release :) |