@JBis I basically want to display the night sky in browser... like stellarium, but a much much basic version of it. like just a few star positions in the sky with sky taking up the whole screen in browser.
@MedMatrix I have no proper idea, but what I know is we can't develop a critical feature that depend on scroll even as web browsers implement it differently. Some browsers fire scroll event after the scrolling has completed.
@adp7 thank you for your answer. Another guy suggest me to implement debouncing aka update the class when the scrolling stops, not while it's occuring OR implement throttle, so it only updates every n milliseconds, not every scroll event
but I don't understand how it could improve the reliability
I have been given this unusual warning from Firefox. The positioning effect it refers to is a div I rotate as a factor of the scroll height. I have never had any problems with it, but is this something I should be concerned about? Is there anyway to have such effects without this warning?
The Ja...
I've an angular app, hosted on firebase with ssr turned on. It works fine however in function health, I'm seeing multiple entries of this error.
> Error: Cannot match any routes. URL Segment: 'main-es5.ca8d6a131bf6ba25c63f.js' at ApplyRedirects.noMatchError (/workspace/dist/server/main.js:207779:16) at CatchSubscriber.urlTrees$.pipe.Object [as selector] (/workspace/dist/server/main.js:207743:28) at CatchSubscriber.error (/workspace/dist/server/main.js:132199:31)
@adp7 indeed, it is linked to my issue. To be more precise, the issue appear when I move the scrollbar (at right of the screen) really quickly, retry and tell me
@adp7 so, if i referred on the question you found, this issue can't be resolve ?
@MedMatrix That question is about asynchronous panning. It's a feature some browsers implement to increase performance. But as I know, firefox desktop doesn't have that feature but your site's nav bar have the problem you mentioned even on firefox desktop (I retried dragging the scroll bar so quickly).
@MedMatrix Scroll event is not super accurate specially with high scroll speeds and mobile web browsers. So better not depend upon it for critical scenarios.
@adp7 yes, you are right! But what astonished me is that there is no question/issue similar to mine about scrolling quickly and change navbar class ...
I once tried to implement javascript based complex parallax effect on my blog totally depending on scroll events. Worked fine for desktop (general scrolling speed) but broke on mobile. Found no solution so I gave up.
Luckily found an article on implementing parallax effects using pure css.
Is there any event that runs when the first script is evaluated on the page? In Chrome, you can set a breakpoint on "Script First Statement" but is there any such event that you can catch and do something?