!!! 5
%html
  %head
    %title= ["Snoonet", yield(:page_title)].reject(&:empty?).compact.join(': ').html_safe
    = stylesheet_link_tag 'application-screen', media: 'screen'
    %script{src: 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js', type: 'text/javascript'}
    = javascript_include_tag 'application'
    %link{href: 'https://fonts.googleapis.com/css?family=Roboto:100,400,500,700,italic,bolditalic', rel: 'stylesheet', type: 'text/css'}
    = csrf_meta_tags

  %body{class: @page ? @page.cssclass : ''}
    %header#header
      = render 'layouts/partials/header', :page => @page
    #content
      - if flash[:notice]
        %p.notice= flash[:notice]
      - if flash[:error]
        %p.error= flash[:error]
      %aside#sidebar
        = render 'layouts/partials/sidebar'
      #spin-container
        #main
          = yield
          %div{style:"clear:both"}
          = render 'layouts/partials/footer'
    %div{style:"clear:both"}

!!! 5
%html
  %head
    %title= ["Snoonet", yield(:page_title)].reject(&:empty?).compact.join(': ').html_safe
    = stylesheet_link_tag 'application-screen', media: 'screen'
    %link{href: 'https://fonts.googleapis.com/css?family=Roboto:100,400,500,700,italic,bolditalic', rel: 'stylesheet', type: 'text/css'}
    = csrf_meta_tags

  %body{class: @page ? @page.cssclass : ''}
    %header#header
      = render 'layouts/partials/header', :page => @page
    #content
      - if flash[:notice]
        %p.notice= flash[:notice]
      - if flash[:error]
        %p.error= flash[:error]
      %aside#sidebar
        = render 'layouts/partials/sidebar'
      #spin-container
        #main
          = yield
          %div{style:"clear:both"}
          = render 'layouts/partials/footer'
    %div{style:"clear:both"}

    %script{src: 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js', type: 'text/javascript'}
    = javascript_include_tag 'application'

Move JavaScript to page bottom
Move JavaScript to page bottom
