Add template loader to device ready callback.