ffutures: (Default)
[personal profile] ffutures
For the HTML version of the Tooth and Claw RPG I've been using the "alt" attribute to describe images and the "title" attribute for pictures to show copyright information etc. when the cursor passes over them, and it's been fine for the first 63 images in the file.

For some reason the titles of #64 onwards don't show up when viewed in Safari on the Mac - they're fine in Opera and Firefox on the PC and Mac. I've checked the HTML for errors using two different validation programs, and while they don't like the style and my use of some deprecated elements much there aren't any actual errors.

So is this an inherent limit of Safari - I suppose there aren't that many documents with that many images and title tags - or something I should be worrying about? I've just wasted more than two hours trying to fix it, and I'm beginning to think that it may be Safari that's broken, not the file.

I suspect that the number of images is the important thing - knowing my luck, someone used a look-up table with six-bit numbering (0-63) to store the information or something...

Anyone got any thoughts? Know anything about this? Know where it might be worth asking? I'm looking through the forums on Apple's site but haven't found anything yet.

much later I wanted to ask about this on Apple's Safari forums, but when I saw what was involved in registering I decided I couldn't face it. If anyone has an account I'd be VERY grateful if someone could ask for me.

File size is 569K, about 5.5 MB when loaded with all images. There are so far 65 images, the problem starts with image #63, but commenting out a couple of earlier ones doesn't help so it may not be the total number of images that's important.

I've just tried pasting the affected part of the document into a separate document file - wish I'd thought of it two hours ago - that's fine when viewed in Safari, so it definitely isn't a coding error, it's something about Safari or the file size etc.

I really don't want to split this into multiple documents, but I'm beginning to think it may be the only fix.

Date: 2008-07-20 08:00 pm (UTC)
ckd: (cpu)
From: [personal profile] ckd
It might be worth going straight to the WebKit folks. This page in particular seems like a good starting point, since you've already confirmed that other browsers don't have the issue.

Date: 2008-07-20 08:08 pm (UTC)
From: [identity profile] ffutures.livejournal.com
I'm going to try re-coding it first from the last image that works properly onwards, in case it's something I've done wrong that's the problem. I tried commenting out several images to see if it made a difference and it didn't, so total number of images doesn't seem to be the problem, maybe it's total file size.

Date: 2008-07-20 08:39 pm (UTC)
From: [identity profile] ffutures.livejournal.com
And it still doesn't work.

Sod it, I'll contact them as you suggest and do the rest without worrying about it, it'll be several days at least before I'm ready to launch, maybe by then they'll be able to suggest an answer.

Date: 2008-07-20 09:25 pm (UTC)
From: [identity profile] dsample.livejournal.com
I just did a test with a simple page that had 70 images in it, and each one displayed the title text properly in Safari, so it doesn't seem to be a hard limit in the number of images in Safari that's causing the problem.

Date: 2008-07-20 09:49 pm (UTC)
From: [identity profile] ffutures.livejournal.com
Think it must be the total page size plus image size - Trouble is I'm already using higher compression than I like on the largest images and I really don't want to reduce the sizes of the ones that people may want to print.

Date: 2008-07-20 09:57 pm (UTC)
From: [identity profile] dsample.livejournal.com
5.5 MB isn't very big these days, though that's only the disk footprint. It's uncompressed versions of those images that get stored in memory for display, so increasing the compression probably won't help (if this is a memory issue.)

I don't think it is, though. I think you would be seeing other problems than the title text going away for some images, if it was just a case of using too much memory. (Just one o those images probably uses more memory that the combined total of all the title strings.)

December 2025

S M T W T F S
  12 3 456
7 89 10111213
14 15 16 1718 1920
21 22 2324252627
28 29 3031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 31st, 2025 05:18 pm
Powered by Dreamwidth Studios