Moved to defer attribute for js include script.
This commit is contained in:
parent
3c552ce458
commit
66b4f2d2db
3 changed files with 10 additions and 6 deletions
|
@ -71,3 +71,8 @@ jQuery.event.special.remove = {
|
||||||
if (e.handler) e.handler();
|
if (e.handler) e.handler();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// start application
|
||||||
|
jQuery(function(){
|
||||||
|
new App.Run();
|
||||||
|
});
|
|
@ -6,8 +6,3 @@
|
||||||
<div id="splash">
|
<div id="splash">
|
||||||
<div class="logo">booting...</div>
|
<div class="logo">booting...</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
|
||||||
jQuery(function(){
|
|
||||||
new App.Run();
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
<head>
|
<head>
|
||||||
<title><%= Setting.get('product_name') %></title>
|
<title><%= Setting.get('product_name') %></title>
|
||||||
<%= stylesheet_link_tag "application" %>
|
<%= stylesheet_link_tag "application" %>
|
||||||
|
<% if Rails.configuration.assets.debug %>
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag "application" %>
|
||||||
|
<% else %>
|
||||||
|
<%= javascript_include_tag "application", :defer => 'defer' %>
|
||||||
|
<% end %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in a new issue