Closed bigscoop closed 2 months ago
Nice, can you use this instead of a local version
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script>
Also, delete the local jquery file.
@sharu725 done :+1:
@bigscoop I suggest you use the entire script tag I provided and remove any local copies. We do not want these files as local assets.
So instead of
<script
type="text/javascript"
src="{{site.baseurl}}/assets/plugins/jquery-3.7.1.slim.min.js"
></script>
use
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"></script>
Also, delete local jquery files.
But then it would be impossible to start it locally while being offline. And we save only around 60 kilobytes of storage space
Hmm.. on a second thought I just tried the site without these scripts, it works just as it used to be. I think we are loading it for no reason.
Try it on your end and remove both if things look fine.
Do keep the analytics script though.
Tested it locally, works also without jquery. Deleted it
Awesome! Please delete this as well along with the file.
<script
type="text/javascript"
src="{{site.baseurl}}/assets/plugins/bootstrap/js/bootstrap.min.js"
></script>
also works. done
Updated jquery to v.3.7.1