I'm repeatedly loading data via JSON every 2 seconds or so to keep a page updated. Each time data is returned. I take the data, update a list (the list can only have 5 items) and then never reference the data again.
If I let this run for an hour, it crashes Safari. Looking at the inspector palette, it looks as if every document is loaded and stays loaded. I'm basically poking around at this point, but my thought was that I need to somehow "unload" the JSON data that was loaded (and the associated function that appears to be created as the callback) after I'm done with that data. Is that the right way to think about it? If so, how do I do that? I can't seem to figure out how to reference the data object to remove() it. Thanks!