module CriticalPathCssWorker

Constants

VERSION

Public Class Methods

critical_css(url) click to toggle source
# 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

Private Instance Methods

critical_css(url) click to toggle source
# 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