szdc / brackets-cdn-suggestions

Provides auto-complete suggestions for common scripts/CSS documents hosted by Google (e.g. jQuery, AngularJS)
MIT License
29 stars 3 forks source link

The library links are downloaded and parsed every time the extension is loaded #1

Closed szdc closed 9 years ago

szdc commented 9 years ago

Use the Preferences API to store libraries and the date on which they were last updated.

AlexArchive commented 9 years ago

I say we cache the library links for the duration of the Brackets session. This seems like an appropriate amount of time time.

I do not think the user will notice any implications if we resolve the CDN links asynchronously at startup time.

What's more, the user can simply restart Brackets to invalidate the cache if need be.

szdc commented 9 years ago

Sounds good.