fix up placement of polyfill loader layout.html and load it only for internet explorer
This commit is contained in:
@ -48,6 +48,15 @@
|
|||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="{{ pathto('_static/js/html5shiv.min.js', 1) }}"></script>
|
<script src="{{ pathto('_static/js/html5shiv.min.js', 1) }}"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
|
{# Keep modernizr in head - http://modernizr.com/docs/#installing #}
|
||||||
|
<script src="{{ pathto('_static/js/modernizr.min.js', 1) }}"></script>
|
||||||
|
|
||||||
|
{# for improved browser compatibility #}
|
||||||
|
<!--[if lte IE 11]>
|
||||||
|
<script src="{{ pathto('_static/polyfill.js', 1) }}"></script>
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
{%- if not embedded %}
|
{%- if not embedded %}
|
||||||
{# XXX Sphinx 1.8.0 made this an external js-file, quick fix until we refactor the template to inherert more blocks directly from sphinx #}
|
{# XXX Sphinx 1.8.0 made this an external js-file, quick fix until we refactor the template to inherert more blocks directly from sphinx #}
|
||||||
{% if sphinx_version >= "1.8.0" %}
|
{% if sphinx_version >= "1.8.0" %}
|
||||||
@ -103,12 +112,6 @@
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endblock %}
|
{%- endblock %}
|
||||||
{%- block extrahead %} {% endblock %}
|
{%- block extrahead %} {% endblock %}
|
||||||
|
|
||||||
{# Keep modernizr in head - http://modernizr.com/docs/#installing #}
|
|
||||||
<script src="{{ pathto('_static/js/modernizr.min.js', 1) }}"></script>
|
|
||||||
|
|
||||||
{# for improved browser compatibility #}
|
|
||||||
<script src="{{ pathto('_static/polyfill.js', 1) }}"></script>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="wy-body-for-nav">
|
<body class="wy-body-for-nav">
|
||||||
|
|||||||
Reference in New Issue
Block a user