Note that there are some explanatory texts on larger screens.

plurals
  1. POFireFox 3.5 Fetches Image Sprite Repetitively - how to prevent?
    primarykey
    data
    text
    <p><strong>EDIT: Mozilla fixed the bug. This thread is dead.</strong></p> <p><strong>EDIT: This is a Mozilla bug. See this thread: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=501853" rel="nofollow noreferrer">https://bugzilla.mozilla.org/show_bug.cgi?id=501853</a></strong></p> <p>I have a sprite I use for my images here: <a href="http://www.trailbehind.com/site_media/images/sprite.png" rel="nofollow noreferrer">http://www.trailbehind.com/site_media/images/sprite.png</a></p> <p>In FireFox 3.5, the sprite seems to get fetched every time I render an icon on my map, you can see the behavior in the Firebug Net Panel when you load this page and/or pan the map: <a href="http://www.trailbehind.com/node/1148091/" rel="nofollow noreferrer">http://www.trailbehind.com/node/1148091/</a></p> <p>I had previously had similar problems to this in Internet Explorer, but I had eventually gotten this working in Safari 3/4, FF 2/3, and IE 6/7/8. Now, something is wrong in FF 3.5 :(</p> <p>I tried to put this code in the of the document to prec-cache the image, but to no avail: </p> <pre><code> var pre = new Image(); pre.src = "/site_media/images/sprite.png"; </code></pre> <p>Here's the code that later creates the map markers (and fetches the sprite image again). It might be GMaps related - it doesn't seem to fetch a sprite to draw each icon or otheer image on the left... just the map.</p> <pre><code>//returns an image-like GIcon based on a sprite function getGIconSprite(attr) { var myicon = new GIcon(G_DEFAULT_ICON); myicon.sprite = {image:"/site_media/images/sprite.png", top:0}; myicon.iconSize = new GSize(16,16); myicon.iconAnchor = new GPoint(8,8); myicon.shadow = null; myicon.sprite.left = attr.offset*16; return myicon; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload