Skip to content

Commit bfab62e

Browse files
committed
Use jQuery in default app from CDN only
Even though this is slightly orthogonal to this PR, jQuery isn't used in the tutorial app, and we removed it from there, and only use Bootstrap from CDN. So it makes sense to make the same change here, too.
1 parent 5339c22 commit bfab62e

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

share/skel/default/public/javascripts/jquery.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

share/skel/default/views/layouts/main.tt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
66
<title><% title %></title>
77
<link rel="stylesheet" href="<% request.uri_base %>/css/style.css">
8-
9-
<!-- Grab jQuery from a CDN, fall back to local if necessary -->
10-
<script src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"
11-
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="></script>
12-
<script type="text/javascript">/* <![CDATA[ */
13-
!window.jQuery && document.write('<script type="text/javascript" src="<% request.uri_base %>/javascripts/jquery.js"><\/script>')
14-
/* ]]> */</script>
15-
8+
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
169
</head>
1710
<body>
1811
<% content %>

0 commit comments

Comments
 (0)