Iphone safari browser taking lot of time to render charts in a dashboard
I have developed a we开发者_开发百科bpage containing charts using HighCharts. It works fine on the PC safari browser, but takes a long tim to load on an iPhone. What could be the issue?
propably the highcharts library. JavaScript on the iPhone is not nearly as fast as on a desktop. You should take a look at this:
http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark
Here you can see that the iPhone 2G was almost 65 times slower as the macbook. And also the iPhone 3GS and 4 are faster, they're not nearly as fast as a desktop computer.
I would guess it so slow, because the iPhone is not fast as your computer.
Maybe take a look at other graphing libraries like gRaphael. It is based on Raphael, which is used in Sencha touch, a JavaScript library for mobile devices and is maybe more optimized.
精彩评论