It's true that plenty of folks bash flash by pointing at performance issues. This is somewhat misguided, for two reasons:
1. it insinuates that its impossible or at least much harder to make your CPU sweat with HTML5. Clearly it isn't - the whole point of an immersive web experience is that you can push the CPU to the limit if thats whats required. Also, practically speaking, making an annoying page that uses lots of CPU is really not very difficult with HTML5. 2. It is based primarily on the notion that the <video> tag tends to stress the CPU less than a flash player playing the equivalent video. This is due to Adobe screwing up in some cases, and due to private API calls to hardware in other cases, mixed in with more Adobe screwup (in that there's public API to fall back to the OS player mechanism on some platforms that Adobe chooses not to use). Video is just one tiny part of the big picture. However, HTML5 still wins. With flash you're dependent on either all- or-nothing approaches like uninstalling flash or using flashblock, or entirely at the mercy of Adobe both for optimizing their player to improve your user experience, and to offer you tools to selectively block that which you find annoying. Given that Adobe hasn't bothered to so much as offer a "Mute" option anywhere, I rate Adobe's performance on catering to the flash-player users as: Abysmal to outright hostile. So, pragmatically speaking, what would happen if all the gaudy animated, sound-enabled flash monstrosities were written in an HTML5 world? Well, they'd be just as gaudy and just as annoying, and they'd hit your CPU just as much. But in that same world, browsers would surely have come up with far better tools to solve these problems than "I can block ALL of it". On Nov 18, 4:30 pm, Fabrizio Giudici <[email protected]> wrote: > I've just connected to the Devoxx home page, where there's a large > twitter integration panel with animations. I suppose it's HTML 5, right? > I see a <canvas> element in a frame (tweets.html). > > Well, connecting with Firefox, Ubuntu 10.10 + Unity, the animation is > just stuck, XOrg getting the CPU, cooling fans to the maximum and > Firefox itself almost frozen - I had hard times to kill it. > When opening the same page from Google Chromium, I see everything as I > suppose it should be (but the CPU is still at 100% because of Chromium, > and fans still to the maximum). > > The first thought I had is "Did they use JavaFX?". No, impossible, the > Devoxx guys went to Flash. Then "So, maybe somebody was right when they > said that Flash has got a poor integration outside Windows". Instead, > it's just HTML 5. Wasn't it supposed to fix all the deployment problems? :-) > > -- > Fabrizio Giudici - Java Architect, Project Manager > Tidalwave s.a.s. - "We make Java work. Everywhere." > java.net/blog/fabriziogiudici -www.tidalwave.it/people > [email protected] -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
