26,562 questions
Advice
0
votes
2
replies
78
views
Detect use of HTTP2/3 in javascript
Actual problem
The actual problem I'm trying to solve is loading resources, among which are potentially 8+ (more than the parallel connection limit) long-running requests. (nd-json)
The issue is that ...
0
votes
0
answers
132
views
Render HTML elements simultaneously
Browsers can start rendering the page before all its HTML code has been downloaded.
To guarantee that two elements are rendered simultaneously, I have the following ideas:
Give them visibility: ...
Best practices
0
votes
1
replies
55
views
Securely managing JWTs in Next.js App Router: Middleware vs. Server Actions vs. Client-side storage?
I am developing a Next.js (App Router) application and I'm looking for the current "best practice" for storing user session tokens (JWTs).
Given the server-client hybrid nature of Next.js, I ...
-2
votes
0
answers
62
views
Change the URL of image upon download
I want a userscript which will intercept image download -- specifically via "Save as" in context menu of an img element -- and change the URL of the downloaded image. I need to do this ...
0
votes
2
answers
53
views
pageswap event and cross document view transition snapshots
I'm following the logic here Cross-document view transitions for multi-page applications
The dom has changed since initial page load. My understanding is that javascript view transitions use the ...
0
votes
0
answers
74
views
Open Test Browser incorrect Arguments in robot file
I may have missed something completely basic in my setup.
We have a cumulusci project, where we're building robot tests utilising SalesforcePlaywright.robot. I'm trying to test the Browser ...
0
votes
0
answers
42
views
Expo App Text Buttons not Updating text as it is on Webpage
The aim if for the Expo-go app to display as is in the browser as below
Browser view: The view is supposed to show the ALL and UNREAD text in the notification tabs as can be seen in the browser view ...
0
votes
0
answers
66
views
How do I synchronize the operation of two browser windows using AutoHotkey?
I need to have synchronous control over two browser windows. When I perform an action in one window (mouse movement, zoom, drag, etc.), it should be mirrored in the other window.
I have an AHK script ...
Advice
0
votes
3
replies
72
views
Browsers fuzzy-matching URL fragments?
In several browsers (Firefox, Edge, Brave), URL https://github.com/rdp/ruby_tutorials_core/wiki/Ruby-Talk-FAQ#user-content--why-are-rubys-floats-imprecise, takes us to the correct page and scrolls us ...
1
vote
1
answer
157
views
<canvas> drawing slows down 200000x at regular intervals [closed]
I measure how long it takes to draw on <canvas>. I would expect that drawing identical lines would take similar amounts of time.
But in Chrome, every 43692 lines, there's a delay that is 200000x ...
0
votes
1
answer
100
views
Intermittent JavaScript event delegation stops working after DOM mutations
I’m facing a difficult and inconsistent JavaScript issue related to event delegation that appears only after certain DOM mutations, and I’m trying to understand the root cause rather than applying a ...
0
votes
0
answers
68
views
Can we automate the stop screen share using the playwright
I am validating a scenario where user stops the screen and checks the notification "Screen share is off".
Right now, I am automating these tests in Chrome browser using the Chrome fake media ...
3
votes
1
answer
100
views
Cross-browser differences in CanvasRenderingContext2D.drawImage
There seem to be cross-browser differences in CanvasRenderingContext2D.drawImage. In the following example, I've noticed that Firefox (Mac 146) and Brave (Mac 1.85.118) not only both change the colors ...
4
votes
2
answers
126
views
Not using require but still getting "require is not defined"
I'm getting the error message:
(global) - index.js:1:0
ReferenceError: require is not defined
The solution I keep seeing online is to use ES6 modules and export/import rather than using require. ...
Best practices
0
votes
0
replies
44
views
Allowed the documents to open in browser instead of downloading. File with big size is failing to load
Allowed the documents to view in browser instead of downloading using Content disposition as inline. But files with huge size is failing to load but its different for different fie types.
Any size ...