2

We do have 3 way to run preloader:

  1. Animated gif/png
  2. Javascript
  3. CSS3

Which technique is preferred? which one is cheaper with performance and which one is more suitable for mobile devices, old and new?

Thank you.

4

1 回答 1

4

The best one to use for mobile devices is CSS3.

  1. A lot less data, smaller image download size(users pay for mobile downloads).
  2. Far smoother rendering experience.
  3. Use media queries for resolution support. Much faster and easier than JavaScript.
  4. Far easier to implement cross browser than a JavaScript alternative, especially in mobile.
  5. Widely used, very easy to implement.
  6. A lot of tools available to test your app.(Mozilla responsive design, etc..)
于 2013-05-02T18:50:45.877 回答