octalmage / Marknote

Markdown Note Taking.
36 stars 13 forks source link

Cache rendered HTML. #6

Closed octalmage closed 10 years ago

octalmage commented 10 years ago

Some larger notes take a few extra milliseconds to load.

While it might not seem like a big deal, it's very noticeable when clicking around.

Anytime markdown is rendered, save the output in an array with the ID. Then we can look up the ID and grab the output instead of re-rendering it.

octalmage commented 10 years ago

There's a few bugs caused by deleting or duplicating notes, need modify the cache for these actions too!