loading external resources into the dom dynamically via data-attribute