Issue #43 open

Inline scripts are not being minified

Jesse Meijer avatarJesse Meijer created an issue

Inline scripts are not being minified. It would be great if inline scripts where also minified.

Comments (4)

  1. limi7less

    thanks for the proposal. i already thought about this a while ago. the problem with inline minification would be performance problems unless caching is used. i will consider this again for the next version of minScript if i find a good solution.

  2. limi7less

    i was thinking more along the lines of creating a hash from either the ID passed to registerScript or the code (or both) and then storing the minified code for that hash inside the standard minScript cache. This would be almost the same logic which is used for external files. of course, putting pos_ready scripts inside external files would work as well, but creating a hash and storing the minified code inside the minScript cache would be a more consistent solution considering that external files already use this system

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.