'Adds URLs for JS and CSS resources that this XBlock depends on to `fragment`.'

def add_resource_urls(self, fragment):

    for vendor_js_file in self.vendor_js_dependencies():
        fragment.add_resource_url(staticfiles_storage.url(vendor_js_file), 'application/javascript', 'head')
    for css_file in self.css_dependencies():
        fragment.add_css_url(staticfiles_storage.url(css_file))
    for js_file in self.js_dependencies():
        fragment.add_javascript_url(staticfiles_storage.url(js_file))
