html - How to add javascript to JBrowse after everything has loaded -
i'm trying add script tag body of index.html in jbrowse 11.5. want executed after has loaded. css, asynchronously loaded tracks , on. i've tried domready! , dom/ready triggered early. know how add script after has loaded?
it might depend on mean "everything being loaded", try couple different methods.
for example, in index.html might write this
jbrowse.aftermilestone('initview', function() { // add code inject script here })
you can add arbitrary javascript there, include new amd modules, or use other code injection type method e.g. inject script tag remote src , wait execute
alternatively, check out plugin architecture jbrowse, way include new code modules
Comments
Post a Comment