Skip to content

Commit

Permalink
Home page performance tweaks - #1908
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-belal committed Sep 16, 2020
1 parent 0f23cb8 commit d7528a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cms/templates/partials/image-carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1>{{ page.title }}</h1>
{% for image in page.images %}
<div class="slide">
<div class="img-holder">
<img src="{% image_version_url image.value "format-png" %}" alt="{{ image.value.title }}" />
<img src="{% image_version_url image.value "format-png|max-185x185" %}" alt="{{ image.value.title }}" />
</div>
</div>
{% endfor %}
Expand Down
30 changes: 16 additions & 14 deletions mitxpro/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="{% static 'images/favicon.ico' %}" />
{% include "partials/gtm_head.html" %}
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Rajdhani:300,400,500,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=swap" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Rajdhani:300,400,500,600,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700&display=swap" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css" rel="stylesheet"/>
<script type="text/javascript">
var SETTINGS = {{ js_settings_json|safe }};
Expand Down Expand Up @@ -64,16 +64,18 @@
{% endblock %}
{% if zendesk_config.help_widget_enabled and not request.path|startswith:'/certificate/' %}
<script type="text/javascript">
if (typeof zE !== 'undefined') {
zE('webWidget', 'prefill', {
name: {
value: '{{user.name}}',
},
email: {
value: '{{user.email}}',
}
});
}
$(function() {
if (typeof zE !== 'undefined') {
zE('webWidget', 'prefill', {
name: {
value: '{{user.name}}',
},
email: {
value: '{{user.email}}',
}
});
}
});
</script>
{% endif %}
</body>
Expand Down

0 comments on commit d7528a3

Please sign in to comment.