Tag Archives: firebug

JavaScript Performance: for vs. while

JavaScript Loops If you have read some preformance tests on JavaScript loops, you may have heard that “while” is faster than “for”. However the question is how faster is “while”? Here are some results, but first let’s take a look … Continue reading

Posted in javascript | Tagged , , , , , , , , , , | 3 Comments

Friday Algorithms: JavaScript Merge Sort

Merge Sort This week I’m going to cover one very popular sorting algorithm – the merge sort. It’s very intuitive and simple as it’s described in Wikipedia: If the list is of length 0 or 1, then it is already … Continue reading

Posted in algorithms, javascript, web development | Tagged , , , , , , , , | Leave a comment

Modyfing Response Headers with Zend Framework

Response Headers You’ve probably seen that you can track the server response headers with Firebug – a wonderful extension to Firefox. But have you ever asked yourself how to change a response header with Zend Framework. header() Typically this is … Continue reading

Posted in web development | Tagged , , , , , , , , , , , , | 1 Comment

CSS Priority: The Difference Between a.my-class and .my-class

Do You Know What’s an Inefficient CSS Selector? Perhaps! I was curious how can inefficient selectors impact a page performance. To begin with this topic let me say that inefficient selector is referred usually as nested selector: div span div … Continue reading

Posted in css | Tagged , , , , , | 3 Comments

How to detect a variable existence in JavaScript?

Preface After reading one of the latest posts from Stoyan Stefanov’s blog – phpied.com I stumbled upon an interesting construction in JavaScript describing how to check an object property existence. I’m going to cover this case using as an example … Continue reading

Posted in javascript, micro tutorial | Tagged , , , , , , , , , , , , | 3 Comments