JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Aug 16, 2018 11:40
If the source is from a extension, it could have personal info right?
Aug 16, 2018 11:39
I think I found some malware on a website in the form of JS with a large string and an eval code, I'm not sure if its the website or a extension thats serving it but it dissapeared when I refreshed, in any case I still have a copy of it, is there a chance that the code itself contains personal information, I would like to post it and know what its doing
Oct 1, 2017 13:44
I'm using nginx to serve a site with basic authentication(so the native browser login screen pops up) and inside that site use fetch to access resources on the same domain but a different port(site served at x.com but sending requests to x.com:999), can I get the browser to send the Authorization header(same credentials as the original login) to x.com:999?
Jan 14, 2016 14:27
I'l gladly take the increased memory usage for it.
Jan 14, 2016 14:27
I'm playing around with a <video> element and I've noticed that when scrubbing(holding the scrubhandle and moving) the video, I understand the browser needs to decode beyond keyframes and that takes a few hunderd milliseconds but is there a way to reduce that lag for already decoded frame(so a part I already scrubbed over?), is there some way to cache it?
Jan 12, 2016 12:59
Oh that's a good point! thanks
Jan 12, 2016 12:54
The only use I can think of that call is if you want to animate after user action(not during) and if you want to cancel animations if they take to long to draw. Am I missing anything? I couldn't find much regarding using requestAnimationFrame vs callback based.
Jan 12, 2016 12:54
I'm buidling a timeline(like the one you find in video editors) in a canvas and I'm a little bit confused regarding requestAnimationFrame call. If I manage to do everything with callback handlers('mouseover', 'mouseup' etc) is there any reason to use that call?
 

The SO Tavern (Free Snacks)

Room 5 was frozen for inactivity even though it was once an ac...
Jan 25, 2015 14:39
Will do, thank you
Jan 25, 2015 14:32
Hi guys, quick question. I'm having trouble with using ffmpeg to concat numerous of segments from a HLS stream. After reading this i'm not really sure whether to post this on SO or SU ( meta.stackoverflow.com/questions/253610/… )