2,522,543 questions
Best practices
0
votes
5
replies
96
views
What can i do to optimize the website and reduce the page loading speed of website
I am a web developer, and I have created a website. The issue I am facing is that the page loading speed of the website is very high, and it takes a lot of time to load the page.
Info of the website:-
...
Score of -2
0 answers
43 views
How can I restrict Google Maps Autocomplete to Australian addresses in JavaScript?
I'm developing a website for a solar installation company that serves customers across Australia. I'm using the Google Maps Places Autocomplete API on a quote request form, but users can still select ...
Score of -3
1 answer
68 views
dyck word to binary [closed]
I have implemented this in js
https://www.reddit.com/r/math/comments/2cmop9/interesting_new_enumeration_of_dyck_words_and/
it goes like that:
bin => dyck word
Am having trouble reversing it:
dyck ...
Score of -1
1 answer
96 views
How to make infinite draggable background using CSS and JavaScript
I am making an website where users can make flowcharts so I have created a workspace for them but I want that if user grabs and moves the workspace more empty space appears like it is infinite without ...
Best practices
0
votes
1
replies
62
views
How to run both api and web with arrow keys to change command prompt to api/web?
I did the setup project by these steps and references I took:
I did the setup using this command: npx create-turbo@latest -e with-nestjs
Output in image: Output image
I referred these links for it:
...
Score of 1
1 answer
83 views
node spawn trouble with doing a graceful shutdown
I am currently trying to host a server with Node.js on my Windows system, which works fine, but I have some trouble when it comes to closing the server.
So here's a very simple example of how I'm ...
Advice
0
votes
4
replies
89
views
Sorting div-table without jQuery
I am using this function to sort a div-table but it is the only thing I am using jQuery for which seems a bit overkill.
I have managed to change the getting of the divs to not use jQuery, but the ...
Score of 0
2 answers
98 views
Log current index while traversing a multidimensional array
This function should log the current index while traversing a multidimensional array.
For the sake of simplicity I will demonstrate it here on a basic 2d array:
[[1,2,3],[4,5,6]]
it should log this:
...
Score of 0
0 answers
53 views
How do you generate "virtual" recurring transaction projections in a backend? [closed]
Stack: Node.js / Nuxt (Nitro) backend, TypeScript, PostgreSQL. DB schema is already settled, so I'm not looking for feedback on that — I need help with the backend implementation logic itself.
Context:...
Score of 0
1 answer
87 views
Using HTML5/JavaScript to generate and save a file on iOS 26.5.2 Safari
I have a static website where I generate a file using Javascript for the user to save. I have been following https://stackoverflow.com/a/18197511 and it has been working great on iOS Safari. However, ...
Advice
0
votes
1
replies
67
views
Is there a way to put a code block directly in an iMessage?
Is there a way to put a code block inside of an iMessage without having to give a link or something like that?
Tooling
0
votes
0
replies
29
views
Is it possible to render forbidden.tsx from proxy.ts in Next.js 16?
I'm using the experimental authInterrupts feature in Next.js 16, which lets you render a forbidden.tsx page when you call forbidden()
Right now my auth logic is all inside proxy.ts, where I control ...
Score of -4
1 answer
62 views
Google Login authentication problem in production MERN stack [closed]
I am trying to implement a authentication system for a project and while implementing Google oAuth functionality. The frontend call the google auth provider to get the code, then when i call the ...
Advice
0
votes
2
replies
116
views
What are the best practices for getting helpful answers on a new post?
I am currently exploring Stack Overflow to understand how frontend developers effectively troubleshoot bugs here. What are the best practices for structuring questions regarding frameworks like Next....
Advice
1
vote
8
replies
123
views
the usefulness of await on my async login method
Is await on my code useful or not?
And if it is, is its necessary or optional?
static async login(req,res) {
try {
const email = req.body.email
const password = req.body.password
...