reference multiple js files in a single line in a html file

前端 未结 6 2020
时光说笑
时光说笑 2021-01-19 07:04

Is there an easy way to reference all js files in an HTML file rather than referencing it one by one?

Instead of this -



        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 07:42

    I use this tool all the time to minify my JS files:

    Online Javascript Compression Tool

    You can upload multiple files and it will concatenate them into one for you. It also produces smaller filesizes than YUI compressor, and Google's JS compiler most of the time too.

提交回复
热议问题