Refactor to split scripts and stylesheets URLs. Auto add files to assets precompile list.