4 ms·
Site takes ~20 seconds to load, but `curl`ing the URL and ctrl+shift+f'ing for "framework" yields the expected result > <p>I like small laptops, so I ordered t
by lucb1e 3y ago
Site takes ~20 seconds to load, but `curl`ing the URL and ctrl+shift+f'ing for "framework" yields the expected result
> <p>I like small laptops, so I ordered the Framework 13. [...] <p>I’m glad I [ordered the DIY version], because assembly was actually FUN.</p>
- dylan604 3y agoyup, this comment is epitome hacker, as well as the decision on a Framework laptop by the TFA.
- lucb1e 3y agoHah! I appreciate your reply :)
- dylan604 3y agoThe question I’m really wondering from your post is why is a server being hugged to death able to respond to a curl request and not a browser’s request?
- esquivalience 3y agoPresumably this was just downloading the source file, not the linked images and any other heavier aspects of the page.
- lucb1e 3y agoIf there's enough threads on the web server being blocked by waiting for WordPress (99% of the websites that HN hugs to death are WP), then once the HTML has loaded (which, in curl, would mean the loading is complete) you are still waiting for threads to serve you the css, images, and scripts. I think in total, the curl loading time was about half of the in-browser page. Both loaded in the end, I just happened to be more patient with curl because I know the server is busy and it's not just a stupid javascript dependency that I'm waiting on.
- dylan604 3y agoah, for some reason I assumed (yeah, I know), that the curl request responded quickly. understanding that the curl request was also delayed now makes much more sense. i get that curl only downloads the HTML and not the other included links, that part was obvious.