Tag: javascript
-
How to retry Selenium Webdriver tests in Mocha
While working on some functional tests for a hosting provider, I kept running into an issue where the login test was failing due to a 500 error. It appeared as if the site hadn’t been fully provisioned by the time my test was trying to login. Initially, I attempted adding timeouts to give the installation…
-
Fix SyntaxHighlighter after Jetpack Infinite Scroll
If you write code on your blog, chances are that you use a syntax highlighter to make the code a bit easier to read. And if you’re on this page, then you likely use the SyntaxHighlighter Evolved plugin. While this SyntaxHighlighter Evolved works amazing for syntax highlighting, I have noticed that when using this plugin…
-
Perceived Speed and Optimization
I was lucky enough to speak at WordCamp Orlando last December. My presentation, titled Perceived Speed and Optimization, discussed some examples of improving user experience through optimistic interfaces. Looking back, I probably should’ve waited a few more months so that I could have come up with more examples and I could’ve talked more in-depth about…
-
JavaScript Masterclass | JSConfUS 2013
This past Friday night, a coworker on Mercury, Enej Bajgoric, shared this video of Angelina Fabbro speaking at JSConfUS 2013. Based on the title of the video, I was certain that I would come away with a more advanced understanding of closures or some other JavaScript topic. But, I was pleasantly surprised that the video…
-
The Need for Speed: Optimistic Web Interfaces
Shortly after starting at Automattic, I became interested in optimistic interfaces after Beau critiqued some work I had done on O2. One of the best videos I found to introduce and demonstrate optimistic web interfaces was this one of Guillermo Rauch, who happens to be a coworker at Automattic, speaking at dotJS 2013.
-
React.js Conf Round-up 2015
The React.js conference was held last month, but tickets were not easy to come by. Never fear though, because the React.js team recently came out with a Round-up post of some of the best content from the React.js conference. Being new to React.js myself, I’m looking forward to taking away a few nuggets that I…
-
Working with React joinClasses
Note: joinClasses is now deprecated and you should use classnames. There is an explanation of how to use classnames at the end of the article. React has slowly been coming together for me over the past few weeks as I have slowly moved from “how do I get this thing to work?” to “how can I…
-
Dynamically Add Classes with React classSet
Note: React.addons.classSet is now deprecated and you should use classnames. There is an explanation of how to use classnames at the end of the article. Earlier today, I needed to add some classes to a link. One class was passed in through a prop, but the other class would be added based on a boolean condition.…