Block attachments need to be respected and also loaded in AJAX.
Maybe CommandWithAttachedAssetsInterface can help?
CommandWithAttachedAssetsInterface
Active
3.0
Code