Live data from Hacker News

A Shocking Truth About CSS

blog.twoalex.com

21–30 of 70 posts

Re: A Shocking Truth About CSS

#22
post #20

Earlier quoted context omitted.

/me mumbles something about Reading The Fine Source. Then you don't have to guess what your browser is doing.

Trying to figure out HTML from reading the Firefox source is kind of insane.

Yeah, OK. So just be ignorant instead.

Re: A Shocking Truth About CSS

#23
post #13

Please, using more CSS selectors than DOMs isn't going to kill a site. In fact, it isn't even close to being a bottleneck. We are talking milliseconds. If you want speed gains, properly compress your images!

Wait, are you saying that a computer capable of executing millions of instructions per second doesn't take very long to do a few comparisons on a dozen or so elements? It takes me a long time to do by hand, so I figured the computer would be really slow too!

> a computer capable of executing millions of instructions per second

Billions, not millions.

Re: A Shocking Truth About CSS

#25

Earlier quoted context omitted.

Wait, are you saying that a computer capable of executing millions of instructions per second doesn't take very long to do a few comparisons on a dozen or so elements? It takes me a long time to do by hand, so I figured the computer would be really slow too!

> a computer capable of executing millions of instructions per second Billions, not millions.

Billions of cycles per second. But executing an instruction frequently takes 20 cycles or so. That reduces instructions to hundreds of millions.

Re: A Shocking Truth About CSS

#26
John Resig (of jQuery fame) talks about why this approach was taken in the design of the sizzle engine that powers jQuery. Its towards the end of this talk (which is quite good by the way), I would find the exact time but my work internet thinks its inappropriate content and won't let me watch the video :(

Re: A Shocking Truth About CSS

#28

John Resig (of jQuery fame) talks about why this approach was taken in the design of the sizzle engine that powers jQuery. Its towards the end of this talk (which is quite good by the way), I would find the exact time but my work internet thinks its inappropriate content and won't let me watch the video :(

could you post a link to it?

Re: A Shocking Truth About CSS

#29
post #20

Earlier quoted context omitted.

Trying to figure out HTML from reading the Firefox source is kind of insane.

Yeah, OK. So just be ignorant instead.

do you read the source of the linux kernel to understand how to use bash? how about the source of a wifi driver before connecting to a network?

your premise is rediculous.

Post reply on HN