To make things async, ImageKit defers possible expensive tasks after the panel has loaded. I.e. Instead of scanning the whole thumbs folder to generate the generated/pending thumbnail counts when the widget HTML is generated, these statistics are lazyloaded via AJAX.
API Code with Authentification:
The actual crawler component that scans pages:
X-ImageKit-Indexing: 1) to tell the server: Generate the page like you would normally do, but after that return me a JSON result instead of the whole HTML page.
ImageKit is somewhat smart here, as every indexing request also searches the page for
I hope, I could help you a bit?