discourse/app/assets/javascripts/template_include.js.erb
Sam 43d63367fd PERF: stop loading handlebars and ember compilers in prod
(this removes a nice 50K from our initial payload and saves memory)

Also fixes invalid HTML automatically if added to HEAD or /BODY
2015-11-27 11:59:01 +11:00

9 lines
183 B
Plaintext

<%
if Rails.env.development? || Rails.env.test?
require_asset ("handlebars.js")
require_asset ("ember-template-compiler.js")
else
require_asset ("handlebars.runtime.js")
end
%>