Tuesday 19 January 2016

Request.js delay breaks script

Script: http://ift.tt/1P41rYL with the node this week and tried to make a script that checks for 404 images on a website. I've got it all set up and decided to use request.js - The script didn't work and while debugging I noticed that there's some sort of delay on the request function; the loop runs, and then when it's done looping it starts to get the responses etc. This means that I'm constantly trying to do image.push(url) with 'var i' set to 39000 because of the delay. I hope I was able to explain my issue, is there a way around this?

Submitted January 19, 2016 at 10:39PM by glowdemon1

No comments:

Post a Comment