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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -