« first day (4236 days earlier)      last day (695 days later) » 

12:28 AM
@Bravo Looks like the issue with FF scrolling wildly had to do with setting custom default font-size. I had Default Font Size set to 14 down from 16. I later experienced the same on a page where I did use server.
May 16 at 17:49, by user3342816
@Bravo It is in Firefox. Have not tested on Chrome as it needs to work in any browser anyway.
**BUT** after a far to long time trying to figure it out it looks like one remedy is to move it to a server.
As it is a static page (no server processing) I used `file:///path/to/case.html`.
When I use my local Apache / BIND server `https://div.codepron.dev/case.html` I am not able to reproduce – at least for now.
Looks like v 100+ is better, but not sure.
It is hard to reproduce.
It appears, - and when I try to make a mock-up it does not appear. Then it works fine, then it goes bananas
I.e. font.size.variable.x-western in about:config or under Fonts on the Settings page
Found that I if I did a delayed window.scrollTo(window.pageXOffset, window.pageYOffset) it "solved" the issue as well.
Looks like pageYOffset is not correctly set internally after rendering
Even with mutation observer I have to add a 500+ms delay on scrollTo
If I do it too early on page refresh the page jumps to the position I usually get to when the scroll goes wild (on toggling of element).
I'm not sure about the font-size thing though as the reproducibility is sketchy at best.
But it appeared and I reset it to 16 and it went away. Back to 14 and it re-appeared. Back to 16 and it went away etc.
Doing scrollTo after I'm 100% sure everything is loaded fixes it each time though.
Main reason I'm not sure about the font-size thing is that I can swear I tested in a untouched profile of the browser.
Where the issue presented itself.
 
12:58 AM
I.e. const fragment = DOM.frag; let li; arr.forEach(data =>{ create li elements and append to fragment })
After loop: const observer = new MutationObserver(() => { window.scrollTo(window.pageXOffset, window.pageYOffset); observer.disconnect(); });
observer.observe(li, {attributes: false, childList: true, subtree: false});
And then finally wrap.appendChild(fragment)
Observer is observing last li element added to fragment / DOM
 
 
7 hours later…
7:55 AM
JavaScript uses static (lexical) scoping. But is this statement true, 'this' value is dynamically scoped, unless used in an arrow function? Because, the value of 'this' is determined and provided by exactly by caller.
 
 
3 hours later…
10:37 AM
@DamodaraSahu this isn't dynamically scoped. It's similar to how dynamic scoping works but it isn't itself dynamically scoped. To put it simple, this is just another parameter to a function. One that can be supplied implicitly or explicitly. In either case, it's not much different if you had function foo(bar) { /* do something with bar */ } - the point is that the value is supplied to the function. It's not looked up like dynamic scoping does it.
 
11:32 AM
Hey guys, how can I go ahead and create a side navigation like the one present on https://buildspace.so/ and https://nextjs.org/docs ?
Where just the middle part is updated and everything is dynamic as it is stuff from the database, both the URLs and the content?
 
12:24 PM
Hi folks, can anyone help me with server side rendering? I am working on laravel-react project. Got the following error
https://gist.github.com/skfahad/44304fd6e91ba1c332c29970f45c5ce9
 
@fahadshaikh 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.
 
 
5 hours later…
5:43 PM
i had my first problem with mobx
 
 
1 hour later…
7:03 PM
Hello
Anyone who have an experience with developer.here.com APIs ?
it's very difficult to generate API key and Bearer token
 
 
1 hour later…
8:15 PM
!!choose grassfields rockydesert forest dunes
 
rockydesert
 
!!choose 1 2 3 4 5 6 7 8 9 10
 
Invalid command! Did you mean: choose, choice, coke? Try help for a list of available commands..‍.‍.‍
5
 
Wow, interesting :)
Can you help me, I am trying to make a GET request to the fuel.hereapi.com/v3/stations API
with Posman
I am providing an apiKey , but every time I am getting

{
    "error": "Unauthorized",
    "error_description": "Token Validation Failure - Unable to decrypt payload"
}
 
@MileMijatović Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
 
8:31 PM
@MileMijatović James seems to have a small bug that sometimes causes it to post a "command not found" message followed by the execution of the correct command
@MileMijatović eh, needs more info on what you are doing than that to tell
 
I am trying to access to Fuel API
Fuel prices api
But this API key does not work
I found this answer and everything works perfect
https://stackoverflow.com/a/63513635/5618326
 

« first day (4236 days earlier)      last day (695 days later) »