The Geek Speaks
- Home /
- The Geek Speaks
Why Use AddThis.com Sharing Buttons
- One minute - May 1, 2014
- #javascript#performance
AddThis.com produces a bit of JavaScript that enables website owners to quickly and easily add social sharing buttons/links to their website. In addition to allowing users to easily share your content socially, they also provide analytics information about what content is shared via which method, giving a greater insight into visitor behavior. However, just because it provides these benefits to websites does not necessarily mean that it is a good tool to implement on your website.
Read MoreAlways Namespace Variable Names in JavaScript
- 2 minutes - Apr 30, 2014
- #javascript#design-patterns
After running into a few issues with variable naming collisions over the past few days, it drives home how much we all should be namespacing our variable names in JavaScript. When writing JavaScript code that is only in use on your own website, you should still always namespace your variables. If you are writting a JavaScript library that will be in use on any website a user puts it on, namespacing your variable names is a minimum requirement.
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 MoreOptimizing Website Load Time
- 4 minutes - Apr 25, 2014
- #magento#performance
Assuming you have already done a few things to improve the page load time of your website, such as using a Varnish caching server, GZipping your content in transit, minifying that same content, and turning on all caching options that Magento or your web platform of choice have available, there is still more you can do. When it comes to website performance, the 80/20 rule definitely applies. 80% of the performance tweaks that you perform will only provide a miniscule improvement to the site load time, while the 20% of things you do make a big difference.
Read MoreOptimize Magento Time To First Byte
- 2 minutes - Apr 24, 2014
- #magento#performance
When looking at the performance of your site, waterfall charts are one of the first places you should investigate. The first thing that is represented on these charts is that the HTML for the website is the first resource that is downloaded every time. As a result of being the first resource downloaded every time, this is the logical first place to look to improve the performance of your Magento website.
Read MoreMagento appending __SID to URLs
When trying to fully optimize a Magento website to run as fast as possible, I tend to opt for turning on all of the caching options in Magento, and then put the Varnish caching server in front of the web server with the Turpentine plugin. However, when you do this with some configurations, you start seeing the __SID query string parameter added to the end of the site’s url. Unfortunately, when the Turpentine plugin sees the __SID query string in the URL, it means that this page request will bypass the cache and load it directly from the server, slowing things down.
Read MoreMagento Adminhtml and Relative Links to Static Resources
Relative links in URLs allow you to only specify the path to an resource that is in the same or subfolder of the current folder. Lets say the current page you are on is http://example.com/test/ and you want to reference an image at http://example.com/test/image.jpg. You could put the full http://example.com/test/image.jpg in the src attribute of the img tag, or you could use just image.jpg instead. This works well when you are not sure what the directory path is the parent directory of your code.
Read MoreMySQL Deadlocks with Magento
One of the things that Magento, and specifically the Zend Framework provide developers is the ability to not have to think about database details as it should just handle all that for you. When it becomes obvious that there is a problem somehow with the production database getting some sort of SQL errors, its time for the developers to start caring about the implementation and architecture details of the database.
Read MoreTop 5 Ways to Make a Developer Your Enemy
- 2 minutes - Apr 16, 2014
- #rant
Developers are known to be some of the most finicky employees you will encounter in the workplace. However, this is a list of things that will annoy or infuriate developers and non-developers alike. Have the IT Manager send an email to all staff saying that all computers will have a keylogger installed. – This one is wrong on so many levels, the least of which is that it shows how little faith the company has in its employees and breeds mistrust of authority.
Read MoreTags
- 100pounds
- 2020
- adblock-plus
- agile
- apache
- apple
- authorize-net
- bing
- bingbot
- blog
- book-reviews
- cache
- chrome
- cloudflare
- compass
- conversion
- css
- culture
- design-patterns
- development
- disqus
- Docker
- firefox
- genesis-framework
- ghost-tag
- githubpages
- helper
- how-not-to
- how-to
- html
- hugo
- internet-explorer
- interviews
- iphone-6
- javascript
- jekyll
- jquery
- laravel
- macOS
- magento
- magento 2
- magento2
- management
- microsoft
- mysql
- netlify
- nginx
- nodejs
- OSX
- performance
- personal
- php
- programming
- python
- rant
- responsive-web-design
- safari
- scrum
- security
- series
- sitecatalyst
- sota
- sql
- sql-server
- teams
- testing
- tier-pricing
- tips
- tmobile
- unittest
- ux
- varnish
- visual-studio
- web-development
- windows-7
- windows-vista
- woocommerce
- wordpress
- xml