$p = Invoke-WebRequest -Uri $url RRS feed

  • Question

  • When using below to load a webpage, it will take 4+ seconds. Is there a way to load it faster? Thanks.

    $p = Invoke-WebRequest -Uri $url

    Wednesday, March 4, 2020 6:17 PM

All replies

  • Modify the web page to send fewer bytes. Remove whitespace. Optimize CSS and JavaScript, etc.

    Analyze the network traffic between the client and server to see if there are retransmits, or other delays.

    Use Yslow to analyze the page. http://yslow.org

    If the web site reads a database to build the page, ask the webmaster and database administrator to review web and DB server performance. 

    • Proposed as answer by jrv Wednesday, March 4, 2020 9:35 PM
    • Edited by MotoX80 Thursday, March 5, 2020 3:23 PM DB
    Wednesday, March 4, 2020 7:29 PM