67beea4138
Using strict DI mode will improve angular's performance when injecting dependencies in injectable functions because it doesn't have to dynamically discover a function's dependencies. It is suggested by Angular official web site to use strict dependency injection mode in production for get better performance: https://docs.angularjs.org/guide/di#using-strict-dependency-injection This patch fixes all the places where explicit di is not applied, and then enables strict-di mode in production. This is prioritized as CRITICAL for Horizon Mitaka release: https://etherpad.openstack.org/p/mitaka-horizon-priorities Change-Id: I1c0e01d7ac9aec03d961f14ff7297bc98c513637 Implements: blueprint angular-performance-strict-di
58 lines
1.9 KiB
HTML
58 lines
1.9 KiB
HTML
{% load branding i18n %}
|
|
{% load context_selection %}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta content='IE=edge' http-equiv='X-UA-Compatible' />
|
|
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
|
|
{% include "horizon/_custom_meta.html" %}
|
|
<title>{% block title %}{% endblock %} - {% site_branding %}</title>
|
|
{% comment %} Load CSS sheets before Javascript {% endcomment %}
|
|
{% block css %}
|
|
{% include "_stylesheets.html" %}
|
|
{% endblock %}
|
|
{% iframe_embed_settings %}
|
|
{% include "horizon/_conf.html" %}
|
|
{% include "horizon/client_side/_script_loader.html" %}
|
|
{% include "horizon/_custom_head_js.html" %}
|
|
{% block ng_route_base %} {% endblock %}
|
|
</head>
|
|
<body id="{% block body_id %}{% endblock %}" ng-app='horizon.app' ng-strict-di>
|
|
<noscript>
|
|
<div class="javascript_disabled_alert">
|
|
{% trans "This application requires JavaScript to be enabled in your web browser." %}
|
|
</div>
|
|
</noscript>
|
|
{% block content %}
|
|
<div id="container">
|
|
<div class='topbar'>
|
|
{% include "_header.html" %}
|
|
</div>
|
|
<div id='main_content'>
|
|
{% include "horizon/_messages.html" %}
|
|
{% block sidebar %}
|
|
{% include 'horizon/common/_sidebar.html' %}
|
|
{% endblock %}
|
|
<div id='content_body'>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
{% block page_header %}
|
|
{% include "horizon/common/_page_header.html" with title=page_title %}
|
|
{% endblock %}
|
|
{% block main %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
<div id="footer">
|
|
{% block footer %}{% endblock %}
|
|
</div>
|
|
{% block js %}
|
|
{% include "horizon/_scripts.html" %}
|
|
{% endblock %}
|
|
<div id="modal_wrapper"></div>
|
|
</body>
|
|
</html>
|