Sage-Bionetworks / syndccutils

code for managing data coordinating operations through Synapse
7 stars 8 forks source link

Strip out embedded JavaScript in HTML files #8

Open jaeddy opened 6 years ago

jaeddy commented 6 years ago

Inline JS code dramatically inflates file sizes for charts and tables (multiple mb minimum); it also prevents any sort of caching that may be available for remote libraries.

Ideally, all JS dependencies should be linked to hosted libraries (CDNs); replacing the links could be done manually or through the aid of CDN look-up service APIs like https://cdnjs.com/api.

jaeddy commented 6 years ago

Need to figure out a better way to handle versions (and, in particular, mismatches thereof) for JS assets from installed R packages vs. hosted URLs.