The Number 1 Cause of the Not Invented Here Syndrome
- 3 minutes - Mar 12, 2015
- #magento#jquery#javascript#web-development#php
One of the quickest ways to get a new internal tool bootstrapped is to utilize an existing design, making slight adjustments to ensure the design matches the requirements of the current project. Instead of using another internal tool as the basis for the new design, I used a design that was purchased specifically for this project. This particular design was unique in that there were multiple working examples using AJAX, pure HTML, and AngularJS.
Read MoreWrite Bulletproof JavaScript
- 3 minutes - Jan 8, 2015
- #jquery#javascript#web-development
While display issues have long been the bane of a web developer’s existence, current web development projects tend to have much more client side interactivity, focusing ever more attention on the reliability and resilience of the JavaScript you write to deliver the complete interactive experience. Many things can cause unexpected errors in your carefully crafted code. However, there are a few things that you can do to make sure that your site degrades gracefully and still provides a basic level of functionality when something in the browser goes wrong.
Read MoreParallax Background Scrolling on Internet Explorer is Not Smooth
- 2 minutes - Sep 4, 2014
- #internet-explorer#jquery#javascript#microsoft#web-development
One of the pleasures of working on a website that is using some of the latest technologies is that you often run into strange compatability issues that only affect one browser or another, and many of the forums have little to no information about how to properly address the issues. Parallax scrolling is a technique that has been around for a while now, highlighted by Apple’s own iPhone 5s card-esque scrolling on their homepage, among others.
Read MoreGoogle Chrome Makes Web Developers Lazy
- 4 minutes - Aug 21, 2014
- #jquery#javascript#rant#chrome
This post may make me sound ancient in the world of web development, but here it comes anyway. Like Microsoft, Google has decided to implement functionality in their dominant browser that is incompatible with the other major competing browsers. When I first started developing websites professionally, ensuring a website worked for 99% of the site’s visitors was easy, relatively, as you only needed to make sure the site worked in Internet Explorer 6.
Read More== and === in JavaScript and HTML Input Elements
- 2 minutes - Jul 3, 2014
- #jquery#responsive-web-design#javascript
If you read any current information about best practices in JavaScript, you will typically find the following advice somewhere in the list of things to do. Always use === and !== while avoiding == and != While I will never argue against this advice, there are a few things that a developer shoule realize when using === and !== instead of == and !=. === and !== first do a check of the data type of the two objects you are comparing.
Read MoreAlways URL Encode your Cookies
- One minute - Jun 23, 2014
- #jquery#responsive-web-design
One of the things that you tend to forget about when dealing with websites that typically only cater to English-speaking visitors is how to properly deal with Unicode throughout the site. It turns out that some browsers handle Unicode support in different sections of the browser differently. For instance, it turns out that when you want to store Unicode data as the value in a cookie, your success may vary across browsers.
Read MoreAvoid jQuery.bind()
- 2 minutes - Apr 29, 2014
- #jquery#javascript#performance
When chasing down performance issues, you never know what kind of problems you will find. I was looking for something that would cause jitter when scrolling on the page. After looking at the custom code that runs on every scroll event, I still had not found a reason for the jitter. Looking at the JavaScript CPU profile when scrolling in Chrome showed that there was an overwhelming majority of the time spent in a function in the Prototype JS library.
Read MoreImprove jQuery Performance With $().addClass()
- 2 minutes - Apr 28, 2014
- #jquery#performance
When looking at things that make a website seem sluggish, you might assume that the most popular JavaScript framework out there always does things in the most efficient manner. However, as I have found, jQuery does not always produce the best performance due to it having to support many different browsers with version 1.x. As a general rule, instead of setting CSS attributes directly on the selected nodes, I prefer to instead add and remove classes on those nodes instead, as it seems to perform much better.
Read MorejQuery.hover Issues in Internet Explorer on Windows 7
- One minute - Mar 27, 2014
- #internet-explorer#jquery#windows-7
When creating a new mega-dropdown menu for a site I was working on, I used jQuery’s .hover event to trigger which content the menu was displayed. This seemed to work as expected in most browsers that I tested in, except for one, Internet Explorer. Unfortunately, it wasn’t even in every instance of Internet Explorer. Windows 7 After Windows Vista came out as one of the biggest duds that the world has ever seen, Windows 7 was a ringing success.
Read More