我怀疑我的网站加载缓慢是因为大量的 javascript 引用。如果我将所有 javascript 文件合并到一个文件中会更有效和更合适吗?
<script src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
<script src="assets/js/jquery.js" type="text/javascript"></script>
<script src="assets/js/jquery.cycle.js" type="text/javascript"></script>
<script src="assets/js/jquery.simplyscroll.js" type="text/javascript"></script>
<script src="assets/js/jquery.watermark.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(function () {
...
});
</script>
<script src="files/js/runfunction.js" type="text/javascript"></script>
<script>
$(function () {
...
});
</script>
</body>
</html>