Skip to content

Commit

Permalink
test moving jquery and bootstrap to minify js
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksptang committed Nov 8, 2023
1 parent b0ce9c8 commit b3712a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions step-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@
<jsSourceDir>.</jsSourceDir>
<jsSourceFiles>
<!--<jsSourceFile>libs/dohighlight-min.js</jsSourceFile>-->
<jsSourceFile>libs/jquery-1.10.2.min.js</jsSourceFile>
<jsSourceFile>libs/bootstrap.min.js</jsSourceFile>
<jsSourceFile>libs/sprintf-0.7-beta1.js</jsSourceFile>
<jsSourceFile>libs/underscore-min.js</jsSourceFile>
<jsSourceFile>libs/json2.js</jsSourceFile>
Expand Down
8 changes: 6 additions & 2 deletions step-web/src/main/webapp/start.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ userCountry = (userCountry == null) ? "UNKNOWN" : userCountry.toUpperCase();
}
</script>
<script src="libs/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="libs/bootstrap.min.js" type="text/javascript"></script>
<%-- <script src="libs/jquery-1.10.2.min.js" type="text/javascript"></script> --%>
<%-- <script src="libs/bootstrap.min.js" type="text/javascript"></script> --%>
<script src="libs/introjs.min.js" type="text/javascript"></script>
<%
if (request.getParameter("debug") != null) {
Expand All @@ -504,12 +504,16 @@ userCountry = (userCountry == null) ? "UNKNOWN" : userCountry.toUpperCase();

<c:choose>
<c:when test="${ param.debug eq '' }">
<script src="libs/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="libs/bootstrap.min.js" type="text/javascript"></script>
<script src="libs/backbone.js" type="text/javascript"></script>
<script src="libs/backbone.localStorage.js" type="text/javascript"></script>
<script src="libs/select2.js" type="text/javascript"></script>
<script src="libs/require-2.1.9.js" type="text/javascript"></script>
</c:when>
<c:otherwise>
<script src="libs/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="libs/bootstrap.min.js" type="text/javascript"></script>
<script src="libs/backbone-min.js" type="text/javascript"></script>
<script src="libs/backbone.localStorage-min.js" type="text/javascript"></script>
<script src="libs/select2-3.4.5.min.js" type="text/javascript"></script>
Expand Down

0 comments on commit b3712a3

Please sign in to comment.