项目作者: dimasjt

项目描述 :
Asynchronous stylesheet and javascript for rails app
高级语言: Ruby
项目地址: git://github.com/dimasjt/assets_async.git
创建时间: 2016-03-11T03:26:12Z
项目社区:https://github.com/dimasjt/assets_async

开源协议:MIT License

下载


AssetsAsync Build Status Gem Version

Installation

Add to your Gemfile file

  1. gem 'assets_async'

And then execute:

  1. $ bundle install

Usage

Add include_assets_async in your application.html.erb

  1. <head>
  2. <title>Dummy</title>
  3. <%= include_assets_async %>
  4. <!-- Other code -->
  5. </head>

Load stylesheet or javascript

  1. <!-- Other code -->
  2. <%= load_css 'application.css' %>
  3. <%= load_js 'application.js' %>
  4. </body>

note:
This gem required uglifier gem

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dimasjt/assets_async. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.