开发者

has anyone used simile timeline with large amounts of data

开发者 https://www.devze.com 2022-12-28 15:31 出处:网络
i am using this simile timeline with large amounts of data and i k开发者_运维问答eep getting firefox popping up saying \"a script has appeared to no longer be running, do you want to kill it\"?is ther

i am using this simile timeline with large amounts of data and i k开发者_运维问答eep getting firefox popping up saying "a script has appeared to no longer be running, do you want to kill it"? is there a limit to the amount of json you can send back to it. I have about 1000 different timeline points with dates, descriptions, etc.


That will always happen if your script takes longer to process the data than the limit in Firefox (you can change the default, but it'll still affect your other users).

Timeline allows you to reduce that by reducing the number of points loaded to only the ones needed to show. Use addOnScrollListener to reload the data in the band so that the number of datapoints loaded is reduced.


One way to reduce the load on the browser is to use new Date() objects instead of date strings in the event data, thus obviating the need for the browser to parse the dates.

{"events": [{title : "an event", start : new Date(1999,4,27), description : "event description"}, {title : "another event", start : new Date(1999,5,7), description : "another event"}] }

see the simile wiki on: Date_Time_Formats

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号