Is it useful to use flash in webpage. I heard flash take more time to load page.

could Javascript help instate of flash?