Module: CriticalPathCssWorker
- Defined in:
- lib/critical_path_css_worker.rb,
lib/critical_path_css_worker/worker.rb,
lib/critical_path_css_worker/version.rb,
lib/critical_path_css_worker/cache_state.rb
Defined Under Namespace
Classes: CacheState, Worker
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.critical_css(url) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/critical_path_css_worker.rb', line 8 def critical_css(url) path = URI(url).path css = CriticalPathCss.fetch(path) Worker.cache_critical_css(url, !css.empty?) css end |