Plugin has been upgraded, faster than ever, less regex, more AJAX, another admin option:
Now you can specify how many attachments to preview by default. Thanks @[deleted] for the idea!
Basically removed the client admin option, it doesn't work for them, so no point suggesting it might.
It works properly with pjax now, apparently I needed to trick DOMDocument into loading snippets as XML.
Appreciate the feedback everyone!