Skip to content

Commit

Permalink
Delay loading Foundation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedas committed Apr 26, 2018
1 parent 86fe315 commit 1346d10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions default/web_tt2/head_javascript.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ var lang = '[% lang %]';
[%IF 0%]<script src="[% static_content_url %]/external/foundation/js/vendor/jquery.js"></script>[%END~%]
<script src="[% static_content_url %]/external/foundation/js/vendor/what-input.js"></script>
<script src="[% static_content_url %]/external/foundation/js/vendor/foundation.min.js"></script>
[%# Loading foundation. ~%]
<script>
<!--
$(document).foundation();
//-->
</script>

[% IF use_html_editor -%]
<script src="[% html_editor_url %]"></script>
Expand Down
5 changes: 5 additions & 0 deletions www/js/sympa.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ function refresh_mom_and_die() {
self.close();
}

/* Loading foundation. */
$(function() {
$(document).foundation();
});

/* Show error dialog. It may be closed only when javascript is enabled. */
$(function() {
var closeButton =
Expand Down

0 comments on commit 1346d10

Please sign in to comment.