Thursday, 30. December 2010
Nice one, Internet Explorer
ska, 11:54h
I'm still experimenting with means to effectively use the performance advantages data-uri images can have.
Today I was bitten however by another case of IE does it differently:
When creating an img tag with a data-uri payload:
var el = document.createElement ("img");
el.src = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
You may want to access the payload again (for instance to use it as a css background). Our approach in Intermedia Fotoficient is to reduce unnecessary copying of data, even in the client browser. So, when I create an img object, can I access the data-uri payload?
Sure you can: Opera, Safari, Chrome and Firefox provide access to the payload exactly as expected:
myElement.style.backgroundImage = 'url('+ el.src + ')';
In IE this throws an exception, and the debugger shows why: the src attribute is null.
When in IE, you access a data-uri payload this way:
myElement.style.backgroundImage = 'url('+ el.href + ')';
... read more stories on the topic int
search
status
You're not logged in ... login
unmasked links of interest
What if ?Gamification? Meant...
Seeing some of the new games out for the holidays this year has reminded me of what...
Seeing some of the new games out for the holidays this year has reminded me of what...
T-Mobile JavaScript comment...
Attempts by T-Mobile to speed up mobile data connections are breaking websites. The...
Attempts by T-Mobile to speed up mobile data connections are breaking websites. The...
LexisNexis open sources code...
HPCC Systems, the division of LexisNexis Risk Solutions dedicated to big data, has...
HPCC Systems, the division of LexisNexis Risk Solutions dedicated to big data, has...
Standards - ColourWiki
There are several standards connected with color management. Some technical standards...
There are several standards connected with color management. Some technical standards...
Alice.js
Alice.js - (A Lightweight Independent CSS Engine) is a micro JavaScript library focused...
Alice.js - (A Lightweight Independent CSS Engine) is a micro JavaScript library focused...
Creating Triangles in CSS...
Jon Rohan: I've come across a few techniques and tips in my career, while working...
Jon Rohan: I've come across a few techniques and tips in my career, while working...
Facebook Wins ?Worst API?...
A survey of over 100 developers, previously posted here on Hacker News, aimed to...
A survey of over 100 developers, previously posted here on Hacker News, aimed to...
DIY Spy Drone Sniffs Wi-Fi,...
Launch your personal, specially equipped WASP drone ? short for Wireless Aerial Surveillance...
Launch your personal, specially equipped WASP drone ? short for Wireless Aerial Surveillance...
OpenSocial 2.0: Will key new...
Introducing OpenSocial 2.0 Now in 2011, OpenSocial has the largest revision coming...
Introducing OpenSocial 2.0 Now in 2011, OpenSocial has the largest revision coming...
Improving DOM Performance...
This article will look into four ways to update game objects in the DOM to find which...
more unmasked links...This article will look into four ways to update game objects in the DOM to find which...
unmasked recent updates
reply
If you try to find place where you can get resume writing...
If you try to find place where you can get resume writing...
by kathleencook (2012.04.29, 12:14)
respond this post
I would get more information about this good topic...
I would get more information about this good topic...
by graham33leigh (2012.04.18, 11:36)
answer this topic
Consequently url submission directory service can got...
Consequently url submission directory service can got...
by michaeltwila18 (2012.04.15, 21:34)
menu
calendar
December 2010 |
||||||
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
Sun |
2 |
3 |
4 |
5 |
|||
6 |
7 |
8 |
10 |
11 |
12 |
|
13 |
14 |
15 |
16 |
17 |
18 |
19 |
21 |
22 |
|||||
29 |
31 |
|||||