Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
172
rated 0 times [  175] [ 3]  / answers: 1 / hits: 20232  / 11 Years ago, thu, october 24, 2013, 12:00:00

I wonder if this code is going to put load on the client since the timeout is so long?



        //and update this again in a bit
setTimeout(function() {
updateWeather(lat,lng);
}, 60000);

More From » javascript

 Answers
8

Not that code alone. The system idles for that one minute. As long as updateWeather doesn't have severe performance issues and the interval is short, setTimeout won't be a product (and I believe you mean setInterval, not setTimeout for recurring checks)


[#74748] Wednesday, October 23, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
masonm

Total Points: 167
Total Questions: 87
Total Answers: 103

Location: Rwanda
Member since Wed, Jun 8, 2022
2 Years ago
masonm questions
;