Closed andrewbredow closed 9 years ago
I have some local changes that make something very similar to this this work, using setTimeout
. I'll refine it further and update my fork so you can see if you find them worth merging into the master branch.
That would be awesome. This is definitely a tricky issue, because anything we add to make this work will have to load on every page load when the extension is running.
I'll definitely take a look at what you check in. What I am thinking is that we need to detect when someone is using a loader library that we recognize, and in that case, attach an event or use setTimeout as you mentioned to ascertain the libraries that are loaded. The trick is going to be doing this in a way that does not rely on the loader itself for notifying us when everything is loaded - otherwise our maintenance is going to go way up as APIs change :)
Closing this as it will be investigated as a part of #15.
Add an asynchronous callback detection method for libraries that don't have all of their information available on page load. For example, we would see that we are loading Sproutcore, register a timer (or similar method) with a callback to update the library information when it is finished loading.