Re:In spite of an increase in Internet speed, webpage speeds...
by bob1029 on Tuesday August 04, 2020 @06:48PM
(#24055335)
Yes, its basically a shortcut when I am doing a quick first scan through resumes. The moment I see one of those keywords I will flag it for 2nd pass review and move on.
[ Parent
| on HN ]
Re:In spite of an increase in Internet speed, webpage speeds...
by asddubs on Tuesday August 04, 2020 @07:08PM
(#24055487)
I'll bring some demos of my snowflake animations and cartoon character gifs that follow the cursor around to the interview
I actually quite like writing vanilla js in my spare time, but I can never tell if I'm doing everything horribly wrong or not
Re:In spite of an increase in Internet speed, webpage speeds...
by bob1029 on Tuesday August 04, 2020 @07:52PM
(#24055786)
As long as it makes sense when you read it after a few days (i.e. its well organized) and it also works as expected, then you are probably doing well.
Javascript is actually incredibly fast on most devices, especially if you are constraining yourself to the vanilla API and not something like jQuery. Remember, every web browser's JS engine has been hyper-optimized to support decades of half-assed website implementations.
It's really hard to screw up perf on document.getElementById(). There's honestly not a whole lot of ways to hang yourself with the vanilla methods unless you are trying to build something ridiculous like a raytracer or physics engine.
Re:In spite of an increase in Internet speed, webpage speeds...
by asddubs on Wednesday August 05, 2020 @09:27AM
(#24060507)
i think the biggest thing for your average app is just causing a lot of layout repaints. as long as you spam requestanimationframe everywhere and group style changes and polling, you'll be good. I was really surprised how good I was able to get things on even an ancient ipad 2 I had laying around
Re:In spite of an increase in Internet speed, webpage speeds...
by azangru on Tuesday August 04, 2020 @09:01PM
(#24056196)
> document.getElementById()
Can we at least do document.querySelector? Pretty please? :-)
Re:In spite of an increase in Internet speed, webpage speeds...
by snet0 on Wednesday August 05, 2020 @12:58PM
(#24062981)
Just use the 1 line jQuery:
const $ = document.querySelector.bind(document)
Re:In spite of an increase in Internet speed, webpage speeds...
by abhishekjha on Friday August 07, 2020 @03:27AM
(#24079286)
What does it do?