This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/roller-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 15e0d74 Self-host jQuery so the ASF Content-Security-Policy stops
breaking the navbar
15e0d74 is described below
commit 15e0d74ec7b15d01702de0d15a8e2c5865714b36
Author: Matt Raible <[email protected]>
AuthorDate: Wed Aug 12 10:16:24 2026 -0600
Self-host jQuery so the ASF Content-Security-Policy stops breaking the
navbar
ASF infrastructure serves a CSP on *.apache.org whose script-src only
allows self and apache.org domains, so the jQuery load from ajax.googleapis.com
is blocked, Bootstrap's JavaScript fails with "Bootstrap's JavaScript requires
jQuery", and the navbar dropdowns and mobile menu are dead on every page.
jQuery 1.11.1 is now served from /js/ (byte-identical to the copy on both the
Google and jquery.com CDNs), referenced from footer.ftl and the four published
pages. Bootstrap's own files [...]
---
content/downloads/downloads.html | 2 +-
content/getinvolved/edit_website.html | 2 +-
content/index.html | 2 +-
content/js/jquery-1.11.1.min.js | 4 ++++
content/project/whoweare.html | 2 +-
sources/src/main/jbake/assets/js/jquery-1.11.1.min.js | 4 ++++
sources/src/main/jbake/templates/footer.ftl | 2 +-
7 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/content/downloads/downloads.html b/content/downloads/downloads.html
index ab7aa45..89ba9a1 100644
--- a/content/downloads/downloads.html
+++ b/content/downloads/downloads.html
@@ -131,7 +131,7 @@
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
-<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
+<script src="/js/jquery-1.11.1.min.js"></script>
<script src="/bootstrap-3.2.0/js/bootstrap.min.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/content/getinvolved/edit_website.html
b/content/getinvolved/edit_website.html
index fb36d30..fafd57e 100644
--- a/content/getinvolved/edit_website.html
+++ b/content/getinvolved/edit_website.html
@@ -166,7 +166,7 @@
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
-<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
+<script src="/js/jquery-1.11.1.min.js"></script>
<script src="/bootstrap-3.2.0/js/bootstrap.min.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/content/index.html b/content/index.html
index 9d25901..3809509 100644
--- a/content/index.html
+++ b/content/index.html
@@ -144,7 +144,7 @@
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
-<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
+<script src="/js/jquery-1.11.1.min.js"></script>
<script src="/bootstrap-3.2.0/js/bootstrap.min.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/content/js/jquery-1.11.1.min.js b/content/js/jquery-1.11.1.min.js
new file mode 100644
index 0000000..ab28a24
--- /dev/null
+++ b/content/js/jquery-1.11.1.min.js
@@ -0,0 +1,4 @@
+/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. |
jquery.org/license */
+!function(a,b){"object"==typeof module&&"object"==typeof
module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw
new Error("jQuery requires a window with a document");return
b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var
c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return
new
m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b
[...]
+if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return
k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof
b||"function"==typeof
b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void
0!==d&&(g[m.camelCase(b)]=d),"string"==typeof
b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function
R(a,b,c){if(m.acceptData(a)){var
d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&& [...]
+},cur:function(){var a=Zb.propHooks[this.prop];return
a&&a.get?a.get(this):Zb.propHooks._default.get(this)},run:function(a){var
b,c=Zb.propHooks[this.prop];return
this.pos=b=this.options.duration?m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Zb.propHooks._default.set(this),this}},Zb.prototype.init.prototype=Zb.prototype,Zb.prop
[...]
diff --git a/content/project/whoweare.html b/content/project/whoweare.html
index a91bdc8..7baed71 100644
--- a/content/project/whoweare.html
+++ b/content/project/whoweare.html
@@ -137,7 +137,7 @@
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
-<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
+<script src="/js/jquery-1.11.1.min.js"></script>
<script src="/bootstrap-3.2.0/js/bootstrap.min.js"></script>
</body>
</html>
\ No newline at end of file
diff --git a/sources/src/main/jbake/assets/js/jquery-1.11.1.min.js
b/sources/src/main/jbake/assets/js/jquery-1.11.1.min.js
new file mode 100644
index 0000000..ab28a24
--- /dev/null
+++ b/sources/src/main/jbake/assets/js/jquery-1.11.1.min.js
@@ -0,0 +1,4 @@
+/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. |
jquery.org/license */
+!function(a,b){"object"==typeof module&&"object"==typeof
module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw
new Error("jQuery requires a window with a document");return
b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var
c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return
new
m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b
[...]
+if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return
k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof
b||"function"==typeof
b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void
0!==d&&(g[m.camelCase(b)]=d),"string"==typeof
b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function
R(a,b,c){if(m.acceptData(a)){var
d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&& [...]
+},cur:function(){var a=Zb.propHooks[this.prop];return
a&&a.get?a.get(this):Zb.propHooks._default.get(this)},run:function(a){var
b,c=Zb.propHooks[this.prop];return
this.pos=b=this.options.duration?m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Zb.propHooks._default.set(this),this}},Zb.prototype.init.prototype=Zb.prototype,Zb.prop
[...]
diff --git a/sources/src/main/jbake/templates/footer.ftl
b/sources/src/main/jbake/templates/footer.ftl
index e8bdda2..b32db07 100644
--- a/sources/src/main/jbake/templates/footer.ftl
+++ b/sources/src/main/jbake/templates/footer.ftl
@@ -20,7 +20,7 @@
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
-<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
+<script src="/js/jquery-1.11.1.min.js"></script>
<script src="/bootstrap-3.2.0/js/bootstrap.min.js"></script>
</body>
</html>
\ No newline at end of file