This is an interesting issue, sometimes we see in FireFox 9 and above an issue where the tab title will actually get set to a state where it says “Connecting” and the spinner is constantly in motion.
One of the things I found recently when I discovered this was quickly writing out DOM elements and then Removing them.
Recently, I had an issue where I was trying to figure out how to create an iframe, and then append some items into it. Well, it turns out to not be nearly as complicated as I thought.
The Better way
By now, we are all using some compiler to compile your code. Right? If you haven’t started, grab the Closure Compiler to follow through on this example.
- Download the latest Closure Compiler http://closure-compiler.googlecode.com/files/compiler-latest.zip
- Copy the compiler.jar file into your directory with the JS Files.
- follow along below and enjoy!
A quick heads up, if you haven’t heard about the new CSSLint project from Nicole ## and Nicholas Zakas, you have been missing out. The project aims to take CSS to the next level and help you understand why your css isn’t performing very well. What, you didn’t know your CSS isn’t performing? Thats because most of us haven’t had a good Code Review on most of our CSS.
CSSLint for TextMate
I talked with Nicholas at the Velocity conference and decided I would put together a quick CSSLint TextMate Bundle that could make use of the Node Module for CSSLint. After a couple of hours playing with the way TextMate Does its bundles, I was able to get a working product. A Couple of quick emails back and forth and we have a Beta version of the CSSLint TextMate Bundle.
Question: Image – inline Script – image, are the images parallel?
Souders just posted the following tweet.
Someone out in #webperf land should test how inline scripts block downloads – eg, image – inline script – image – are the images parallel?
So here is my response to the question…
During the course of building web apps, we usually end up with functions to do certain tasks. However, since those tasks sometimes need to be done differently in each of the browsers, we end up with large if else statements to get the job done.
This is where Self Defining Functions come in handy.
Recently I was browsing through the jQuery subr reddit and noticed this question pop up. Since I am sure this is a pretty common question on “Why won’t my jQuery command work properly”, I figured I would give a shot at answering it.
Hey guys, I’m sure this has been answered before but I can’t seem to find anything by searching Google or /r/jquery.
I am a beginner with this so forgive me, but I can’t find an explanation to this anywhere and I’m curious. When I try to stop the default submit function of a form in the <head> tag of a .html file it won’t work, but when I copy and paste the same code into the <body> it works fine. Regardless of where I place it, it is always below the link to the jquery library. This is really confusing and I was hoping you guys could explain this for me. Thanks!
via jQuery <script> in <body> or *lt;head>.
In the 3rd chapter, Literals and Constructors, I noticed this section on “Patterns for enforcing new” with the following entry:
When your constructor has something like this.member and you invoke the constructor without new, you’re actually creating a new property of the global object called member and accessible through window.member or simply member. This behavior is highly undesirable, because you know you should always strive for keeping the global namespace clean.
I was just looking through a new blog post from Brendan Eich over on
AMinuteWithBrendan where he went into some detail on Closures versus
After listening to his pod cast, (you can find the transcript here), I decided to put
the two patterns to test. So I fired up a new test on JSPerf.com