Question

i am using this simile timeline with large amounts of data and i keep 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.

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top