This recipe introduces the YSlow library for PhantomJS and illustrates how to perform a detailed performance analysis of a web page.
To run this recipe, we will need a target URL.
We will use the PhantomJS port of the YSlow library to execute the performance analysis on our target web page.
YSlow is a library that analyzes web pages and produces a report on that page's performance, grading it against benchmarks and rules established by Yahoo! web performance experts. We can find out more about YSlow for PhantomJS on the project site at http://yslow.org/phantomjs/.
The examples that follow assume version 3.1.8 of the YSlow library, which is included with the sample code repository.
YSlow is ...