I wanted to know if browser speed affects the execution time of JavaScript code. For example, if I have this code Does it mean that someone with a 4G connection will get this code executed earlier than someone with a 2G connection Answer No, as I understand it, Java Script is run in your browser and your browser have engine
Tag: browser
What is the difference between src, public, and build in folder structure?
I know what these files contain like build contains the minified file which is minified from src file. I need to know how browser works with it. I haven’t uploaded my build file to hosting service yet my website got rendered. In the website, <script> SRC was linked to build but there was no build uploaded but a build was
Are there any browser-native 360 spin viewers?
There are several plugins for viewing interactive 360-spin images of products, such as this: https://www.ajax-zoom.com/index.php?cid=home&tag=spin360 However, my question is whether there are any current or proposed solutions for this that are browser-native, so don’t require any plugins? One analogy would be how gifs are now natively supported by most browsers without the need for a plugin. Many thanks! Answer First,
How to download a ReadableStream on the browser that has been returned from fetch
I am receiving a ReadableStream from a server, returned from my fetch call. A ReadableStream is returned but I don’t know how to trigger a download from this stage. I can’t use the url in an href because it requires an Authorization token. I don’t want to install fs on the client so what options do I have? Update 1
Difference between Web Streams and Node.js Stream APIs
I’m building a file upload application to familiarize myself with the concept of streams. I’m trying to turn a file list or blobs into a stream then upload it to the backend and store it on the file system. I had no issue with frontend and backend implementations respectively but I’m having a hard time connecting the two. My main
How is Outlook Online downloading attachments?
I’m trying to understand how the “Download All” button works in Office365 Outlook Online when downloading multiple attachments from an email. The button is a “button” type. It does not appear to be part of a form. It has some “click” event listeners (apparently using React), but I’m not able to understand if those are somehow resulting in the download
How to detect prefers-color-scheme change in javascript?
I can use window.matchMedia to detect whether user is in dark mode, but how to listen dark mode change event? Is there any API like: Answer You can add an event-listener with callback on the MediaQueryList returned by Window.matchMedia(): Note: There are two method versions to register an event-listener: the recommended addEventListener(“change”, listener)) which allows more fine-grained assignment to event-types
Is it possible to add a request header to a CORS preflight request?
I have a website that accesses an API from an external server (not the server that serves the website) via a plain XmlHttpRequest (see below). That API requires an API key for accessing the service to be added as request header. However, as these are CORS requests the browser first does a preflight request to check if that server supports
what is the purpose of chrome-extension inject.js
Hello I have a react project which is working full and functional but when I look into network form console I find an unexpected script called chrome-extension://gppongmhjkpfnbhagpmjfkannfbllamg/js/inject.js which is not associated with my project. Is that a virus or an extension ?? In my chrome://extensions/ there is nothing called inject. Can anyone tell me what is this? This script loading
Browser is cancelling multiple file download requests
I am trying to download multiple files that the user has selected for download. However, the browser is cancelling all but last download request. If I am increasing the delay between the requests to say about 1 second, then those files get downloaded, but even in this case, sometimes some files are missed. The files are being downloaded from amazon