VID-1268 use prepend instead of insertBefore on async loaded template