javascript - Using pagespeed with phantomjs and jenkins integration -
i trying automate web page performance using pagespeed.
is there plugin available pagespeed run on phantomjs
we have yslow plugin same , working locally
i using command line , integrating same jenkins continous integration
thanks , appreciate help
some sample code
phantom.create (ph) -> ph.createpage (page) -> page.open "http://www.google.com", (status) -> console.log "opened google? ", status page.evaluate (-> document.title), (result) -> console.log 'page title ' + result ph.exit()
since pagespeed c++ binary, might want try integrating phantomjs netsniff.coffee
(from examples) generates har file of given page piping output har_to_pagespeed. or go pagespeed insights online service.
Comments
Post a Comment