What happens if I try to run my generated javascript code in an unsupported browser? Like IE6?
I don’t want to end up in a situation that my users will see a partly working broken app. Is there a way how to ensure that the dart/javascript will run only if the browser is supported and have my app degrade gracefully to some html banner “use a newer browser please” if it is not?
You could use the browser detector script here: http://www.quirksmode.org/js/detect.html
I wrote this code from the top of my head, I don’t have a testing machine at my disposal right now:
The version information can be found on: http://www.dartlang.org/support/faq.html#what-browsers-supported
Dart VM detection: http://www.dartlang.org/dartium/#detect