Instantly share code, notes, and snippets.
Good tip. This is basically what $.getScript() does, but with the cache AJAX option, right? I was surprised to find that $.getScript() does not accept this option itself :/
Yeah, I’ve pinged @kswedberg about it — he’ll be adding it to the documentation page for $.getScript soon.
$.getScript support caching when using the options object signature like this: