grunt-yslow icon indicating copy to clipboard operation
grunt-yslow copied to clipboard

Add a domain property to check several pages from the same domain (without repeating it)

Open fcalderan opened this issue 10 years ago • 0 comments

This is an improvement request: right now I'm testing several pages in this way

pages: {
    files: [
      {  src: "http://mydomain.com" },
      {  src: "http://mydomain.com/page1.html" },
      {  src: "http://mydomain.com/page2.html" },
     ...
    ]
}

If we had lot of pages to test for a given domain, wouldn't be good having a domain property so we could save the domain repetition? something like

pages: {
    domain: 'http://mydomain.com/",
    files: [
      {  src: "index.html" },
      {  src: "page1.html" },
      {  src: "page2.html" },
     ...
    ]
}

Another small change, when the threshold level is the same for all the pages, could be the capability to define the filename inside the files array, e.g.

pages: {
    domain: 'http://mydomain.com/",
    files: [ "index.html", "page1.html", "page2.html" ]
}

Thank you.

fcalderan avatar Mar 13 '14 14:03 fcalderan