相关疑难解决方法(0)

在保持元素/样式/脚本关系的同时缩小整个目录?

目前是否存在可以缩小整个项目目录的解决方案?更重要的是,是否存在任何可以缩短类名,ID并在所有文档中保持一致的解决方案?

可以改变这种情况的东西:

Index.html ---

<div class="fooBar">
  <!-- Code -->
</div>
Run Code Online (Sandbox Code Playgroud)

Styles.css ---

.fooBar { 
  // Comments and Messages
  background-color: #000000; 
}
Run Code Online (Sandbox Code Playgroud)

Index.js ---

$(".fooBar").click( function () { 
  /* More Comments */
  alert( "fooBar" ); 
});
Run Code Online (Sandbox Code Playgroud)

进入这个:

Index.html ---

<div class="a"></div>
Run Code Online (Sandbox Code Playgroud)

Styles.css ---

.a{background-color:#000;}
Run Code Online (Sandbox Code Playgroud)

Index.js ---

$(".a").click(function(){alert("fooBar");});
Run Code Online (Sandbox Code Playgroud)

performance minify page-load-time

14
推荐指数
1
解决办法
4068
查看次数

标签 统计

minify ×1

page-load-time ×1

performance ×1