class CriticalPathCss::CssFetcher

Protected Instance Methods

css_for_route(route) click to toggle source
# File lib/critical_path_css_worker.rb, line 39
def css_for_route(route)
  url = @config.base_url + route

  Phantomjs.run(
    '--ignore-ssl-errors=true',
    '--ssl-protocol=tlsv1',
    PENTHOUSE_PATH,
    '--width', '375',
    url,
    @config.css_path
  )
end