!!! html
%html
  %head
    %title #{@g_set_title || t(:site_title)}
    %meta{name: "viewport", content: "width=device-width, initial-scale=1.0"}
    /
      HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries
      WARNING: Respond.js doesn't work if you view the page via file://

    / [if lt IE 9]
      %script{src: "https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"}
      %script{src: "https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"}

    = stylesheet_link_tag    "application", media: "all"
    = stylesheet_link_tag    "https://fonts.googleapis.com/css?family=Roboto:400,500,700", media: "all"
    = javascript_include_tag "application"
    = csrf_meta_tags
    = render 'google_analytics'
    :javascript
      addToHomescreen();

  %body
    = render 'header'
    = yield



!!! html
%html
  %head
    %title #{@g_set_title || t(:site_title)}
    %meta{name: "viewport", content: "width=device-width, initial-scale=1.0"}
    /
      HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries
      WARNING: Respond.js doesn't work if you view the page via file://

    / [if lt IE 9]
      %script{src: "https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"}
      %script{src: "https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"}

    = stylesheet_link_tag    "application", media: "all"
    = stylesheet_link_tag    "https://fonts.googleapis.com/css?family=Roboto:400,500,700", media: "all"
    = javascript_include_tag "application"
    = csrf_meta_tags
    = render 'google_analytics'

  %body
    :javascript
      addToHomescreen();

    = render 'header'
    = yield



Move addToHomeScreen to body tag
Move addToHomeScreen to body tag
