site: fetch js/css from hledger.org
More precisely, fetch js/css from the same site you're viewing. This keeps page styles working when you're previewing pages without an internet connection (eg with site-preview). It presumably adds an extra couple of fetches for each visitor on first visit to hledger.org, probably not noticeable.
This commit is contained in:
parent
f75b019a05
commit
06fc4d29e5
@ -8,10 +8,18 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>hledger: $title$</title>
|
<title>hledger: $title$</title>
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
|
|
||||||
<link href="http://maxcdn.bootstrapcdn.com/bootswatch/3.3.0/readable/bootstrap.min.css" rel="stylesheet">
|
<!-- get resources from CDN/jquery.com, loads fast -->
|
||||||
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
|
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css"> -->
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootswatch/3.3.0/readable/bootstrap.min.css">
|
||||||
|
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> -->
|
||||||
|
<!-- <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> -->
|
||||||
|
|
||||||
|
<!-- get resources from same host (except readable theme), works offline -->
|
||||||
|
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<script src="/js/jquery-1.11.0.min.js"></script>
|
||||||
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
<script src="/js/site.js"></script>
|
<script src="/js/site.js"></script>
|
||||||
<script src="/js/highslide/highslide.js"></script>
|
<script src="/js/highslide/highslide.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user