izuzak / atom-pdf-view

Support for viewing PDF files in Atom.
https://atom.io/packages/pdf-view
MIT License
108 stars 30 forks source link

Reduce loading time #37

Closed aengelke closed 9 years ago

aengelke commented 9 years ago

The pdf-view package takes ~2 seconds to load, and another ~200ms to get activated. What if you require the PdfEditorView when you actually use it, instead of the top of the file?

izuzak commented 9 years ago

That's a neat idea :bulb:, but I won't have time to look into this myself in the near future. If you (or anyone else) want to take a stab at this -- I'd be happy to review a pull request. :+1:

Pointer: the main entry point is here, and that's where require is used to load some pdf-view modules.