« first day (3559 days earlier)      last day (1374 days later) » 

12:47 AM
Anyone know if all the contents of a webpage stored in memory?
If there are some large assets on a page, will it still be stored in memory?
 
1:13 AM
Do you mean server side or client side?
Not sure exactly what you mean since it makes it’s way to memory either way.
 
 
4 hours later…
5:11 AM
@JBis As opposed to being stored on the disk? I am fairly certain that the page is entirely loaded in memory but you can stream contents to it. For example, that's what YouTube does.
 
1
Q: Read More functionality not working properly when rendering html from database with the help of ejs

Harshdeep SaiyamI'm having this issue where I am rendering some html content from database where I have to add a read more button , but in the case of normal string the read more is working fine, but for html content rendering from db it is running in reverse mode , for example :clicking on read more is doing re...

 
@HarshdeepSaiyam Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
6:01 AM
@VLAZ well here's my concern, I'm building an image manager app and I'm unsure if chromium can handle 1000s of images without using tons of memory. I can paginate it if necessary but ideally I wouldn't.
 
@JBis I'm not sure, then. I am under the impression that any resources currently loaded stay in memory but I don't think I can guarantee it. It's possible that a browser optimises this as well. I've apps that allow infinite scrolling which definiteily explicitly unload earlier results. So, for example you see items 1-20, you scroll down to number 15 - it loads another 20 and as you scroll down it unloads the first 20.
That was in quite a modern apps as well but I can't remember examples.
So, it seems like a way to handle something like your case - not to keep (potentially) thousands of items in memory.
It's also a PIA if you actually want to search for something, since you need to scroll down to load the next batch, Ctrl+F for something, scroll down again and so on.
 
 
5 hours later…
10:45 AM
can some one help me understant whow i export makestyles inside class componente
 
user13780186
11:04 AM
does anyone know how to do this.
https://stackoverflow.com/questions/62891568/how-to-merge-combine-two-array-and-create-a-new-row-in-angular
 
11:16 AM
not really
 
 
5 hours later…
3:54 PM
hi guys, have a mongodb releated problem can i ask here ??
 
sure, though no guarantees you'll get an answer.
 
that good enough
i am just spending whole day getting with this shit problem,
`MongooseArray.prototype.pull()` doesn't work
it doesn't even show any err
 
did you enable mongoose debugging?
been a while since i've used mongoose, but when i did, it swallowed all errors unless i was specifically listening for them
 
i just installed mongodb today, so, whats that exaclty ??
 
mongoose is a querybuilder for mongodb built in node.js
!!afk meeting
 
3:58 PM
@KevinB bye Kevin B
 
mongoose, yep using that as of my tutorial
thanks for the clue ..
 
4:11 PM
Hey everyone, I'm using react native to build an application. I'm building the auth flow now. A get started button displays a modal that allows the user to register, then if they have an account login, or click forgot password. Register, login, and forgot pword are all meant to be modals. Is it better to display one modal and change the content somehow or have the modals display the other modals depending on what's pressed?
 
@DMop Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
4:27 PM
posted on July 14, 2020 by Bindu Suvarna

Hi, everyone! We've just released Chrome 84 (84.0.4147.71) for iOS: it'll become available on App Store in next few hours. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Bindu Suvarna Google Chrome

 
5:01 PM
Made with by ❤️ Dan Abramov
https://whatthefuck.is/
 
5:51 PM
posted on July 14, 2020 by Prudhvikumar Bommana

The Chrome team is delighted to announce the promotion of Chrome 84 to the stable channel for Windows, Mac and Linux. This will roll out over the coming days/weeks. Chrome 84.0.4147.89 contains a number of fixes and improvements -- a list of changes is available in the log. Watch out for upcoming Chrome and Chromium blog posts about new features and big efforts delivered in 84

 
6:20 PM
Hi all
Is it possible to disable browser (console) reporting of CSP warnings?
Hmm, seems like it's not possible/won't happen anytime soon: github.com/w3c/webappsec/issues/508
 
 
2 hours later…
8:11 PM
I'm trying to unicode a string array. Here is an example

`const params = {"stuff": ["A", "B", "C"]}`

output would look like this.

/queries/1/execute?stuff=A&stuff=B&stuff=C
 
8:33 PM
||> const params = {"stuff": ["A", "B", "C"]};
Object.entries(params)
.map(([key, values]) => [key, [].concat(values)])
.map(([key, values]) => [encodeURIComponent(key), values.map(encodeURIComponent)])
.flatMap(([key, values]) => values.map(value => `${key}=${value}`))
.join('&');
 
@VLAZ "stuff=A&stuff=B&stuff=C" Logged: `` Took: 1ms
 
@LuisAverhoff ^ also fuller example here
 
8:54 PM
@VLAZ omg
That's a lot of code
 
meh
only 2 lines
 
Could also be
Object.entries(params)
  .flatMap(([key, values]) => [].concat(values).map(encodeURIComponent).map(value => `${encodeURIComponent(key)}=${value}`))
  .join('&');
but I don't think it's much clearer than separating the actions
If you drop the normalisation step and the URI encoding, it's also a lot less.
 
Take the first map out
thate inefficient
Also why concat and not use array directly
Object.entries(params)
.flatMap(([key, values]) => values.map(value => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`))
.join('&');
On mobile can't format
 
9:56 PM
@VLAZ hmm. I'm not sure if you are familiar with iOS or macOS Photos app, but they display thousands of photos and animate really quickly. Obv its native, I was just wondering if i could create something similar
 
 
2 hours later…
11:33 PM
posted on July 14, 2020 by Krishna Govind

Hi, everyone! We've just released Chrome 84 (84.0.4147.89) for Android: it'll become available on Google Play over the next few weeks. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

 

« first day (3559 days earlier)      last day (1374 days later) »