Link to home
Start Free TrialLog in
Avatar of jrm213jrm213
jrm213jrm213Flag for United States of America

asked on

conditional comment or fallback for SVG

Hi,

We have a lot of content that is currently flash based because we needed the art to scale with the browser window. We have now made most of those items into SVG and can accomplish the same thing using a little javascript and the svg file. The problem we are running into is that IE doesn't work right with the SVG's and Android Browser also will not display SVG's (unless the Android is Version 2.4 or greater, which the majority of our users are not on 2.2 and 2.33 seem to be the most used).

Initially I used conditional comments to display the old flash object on IE and hide it from everything else, but that leaves android not displaying anything at all on the page. When I use down-level revealed conditional comments then FF/Chrome/etc... load both the flash and the svg, fortunately the SVG covers the flash because of the way we have it coded, but I don't want both objects to have to load... it's a waste of bandwidth and makes the page take twice as long to display...

The new html5 audio and video tags have that nice fallback feature but their doesn't seem to be anything like that for SVG...

Does anyone know how I can get this working so SVG displays for those that can see it and if they can't then it displays Flash?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of lisfolks
lisfolks

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jrm213jrm213

ASKER

The article helped some, had to use trial and error to get this to work correctly on all platforms we needed it to work on.