Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1332 Minified JavaScript libraries

output: webhelp
open
nobody
None
5
2014-05-01
2014-04-30
Luca Falavigna
No

webhelp contains some minified JavaScript libraries:
* xsl/webhelp/template/common/jquery/treeview/jquery.treeview.min.js
* xsl/webhelp/template/common/jquery/jquery.ui.all.js
* xsl/webhelp/template/common/jquery/jquery-1.7.2.min.js
* xsl/webhelp/template/common/jquery/jquery-ui-1.8.2.custom.min.js

In Debian, we do not consider these as proper source files, and we are encouraged to provide the full, unminified versions instead. Would it be possible to replace them with the corresponding unminified versions?

Thanks for considering.

Discussion

  • Jirka Kosek
    Jirka Kosek
    2014-04-30

    Delivering unminified JS into user's browser has very negative impact on performance and latency. Each minified source code contains text and links which will redirect interested parties to original source files and licensing information.

    If you need unminified version of jQuery and jQueryUI in Debian, you are free to put copies of those libraries into your distrubution.

     
  • David Cramer
    David Cramer
    2014-04-30

    Should we instead remove those files and use references to versions on a CDN instead?

     
  • Jirka Kosek
    Jirka Kosek
    2014-05-01

    I think that even if we will switch to CDN, we should make this parametrized. Referencing to CDN would mean that output will be unusable without internet connection.

     
  • David Cramer
    David Cramer
    2014-05-01

    +1 for parameterizing. I can see that including the non-minimized source as well would be a best practice.