Defer JavaScript in WordPress – fixed

I was recently contacted by a past WordPress site client, desperate because they couldn’t create new posts or pages, and all of their media had gone! Why had the site broken? Was it something I did a couple of years ago coming back to bite me? Time to do some debugging.

I’ll cut a long story short, and say that I did all the usual things here – updated core, theme, and plugins, ran a security check to verify no compromised files, used the excellent Health Check & Troubleshooting plugin, all to no avail. My final, dreadful thought – has somebody made changes to my repository managed, custom child theme‽

Dear reader, even with **DO NOT EDIT** notices front and centre in the themes files, somebody had gone ahead and made edits to those files, and while they had fixed the issue on the front end, they had badly broken the admin.

“What was the issues that they fixed?” I hear you ask – Deferring loading of JavaScript to decrease the load time of pages. The method used to achieve this is a simple snippet which can be found on numerous sites with a simple search, is often coupled with a request or aim to “get a better GTMetrix score”, and almost every snippet presented is WRONG.

Read more “Defer JavaScript in WordPress – fixed”

Dettol Mission for Health

Dettol’s Mission for Health initiative took a new direction by appointing a team of mom (and dad!) bloggers as Mission for Health Ambassadors. To assist the team of ambassadors with their publishing needs, and to improve the visibility of the campaign, the Mission for Health content was moved from the main Dettol website and into a new WordPress powered domain. The new domain contains all of the content that existed within the main site, plus all new content from the team of ambassadors. The site’s publisher is able to select key articles and categories for display on the homepage, promoting important and timely content as required.

Read more “Dettol Mission for Health”

Holler Naughty or Nice Machine

An end of year 20% project led by the Holler Sydney dev team for Christmas 2012. The concept was simple enough, invite visitors to the Naughty or Nice Test site to connect via Facebook. Once connected, analyse their activity throughout the year to determine whether they had been naughty or nice. Being led by the devs, we decided to use lots of CSS3, transitions and animation. It won’t work for everybody due to browser support, but it was good for us to cut loose and ride the edge of the wave!

Read more “Holler Naughty or Nice Machine”

Tourism Australia YouTube Gadget

Tourism Australia is the Australian Government agency responsible for attracting international visitors to Australia and encouraging Australians to travel domestically, both for leisure and business events. The Tourism Australia YouTube Channel was redeveloped to improve the way travellers use video to plan their Australian holiday.

In a world-first, the site provides customised content in nine languages for 16 key markets (including Australia) to enhance the trip-planning experience for potential visitors. Rich video content is now linked to an interactive Google map for users to see where the footage was filmed and in turn build their itinerary around the destinations they are considering in Australia. Another new feature of the updated Tourism Australia YouTube Channel is that videos can also be filtered by state and city, type of experience, popularity or via Tourism Australia selected videos so users can generate their own bespoke gallery of Australian tourism experiences.

Integration with popular social media sites has also been enhanced to provide users with a deeper, more personal experience. For example, a “Facebook connect” function matches users’ Facebook friend check-ins with the destinations on their playlist so they can see which of their friends have visited the locations shown in the videos. The Australia Channel has also been set-up so users can easily share their customised playlist with friends and family with Facebook.

Tourism Australia’s Instagram images, which match the destinations and experiences in the videos, also feature in the playlist.

Read more “Tourism Australia YouTube Gadget”

ESPN Australia website rebuild

ESPN, Inc. is the world’s leading multinational, multimedia sports entertainment company featuring a portfolio of over 50 multimedia sports assets. The site was redesigned and rebuilt to position it as the premium source for information regarding ESPN programming and content for the Australasian region.

The main objective of the new site was to highlight the full range of sports and programming available, to make the programming data available in real-time, and to provide easy entry points for new subscribers to the service.

The site was built using the Silverstripe CMS platform, and integrated scheduling data from the ESPN API feed.

Read more “ESPN Australia website rebuild”