Compressed version of scripts and styles?
Submitted by bluetea on Fri, 05/13/2016 - 08:19
Forums:
Is there a compressed (or at least concatenated) version of all scripts and styles from h5p libraries? Or how to make one?
The purpose is to be able to attach the compressed version instead of multitude od single scripts, for page performance. There would probably be much unused code in such h5p.all.js file and h5p.all.css, depending on how many libraries are actually used on the page. But still it would be a performance advantage, i think.
falcon
Fri, 05/13/2016 - 11:52
Permalink
H5P is supposed to handle
bluetea
Fri, 05/13/2016 - 14:16
Permalink
I would like to serve h5p
I would like to serve h5p content from Drupal server for embedding it as iframe on arbitraty client websites. For this purpose I created a function which basically does the same as h5p_embed() from h5p.module file, but allows to embed multiple contents of various types in one iframe. The original h5p_embed() adds scripts and stylesheets one by one and so does my function. It works fine so far, at least to the extent I've tested, but because serving embeddable content will be the main purpose of this service, I'd like to optimize it for performance.
falcon
Wed, 05/18/2016 - 14:37
Permalink
It seems you're right. One of