Subscribe to DrupalOnWindows feed
Updated: 52 min 14 sec ago

Drupal 7 update jQuery.once: jquery.once polyfill

December 22, 2016 at 11:24am

In this post I will share a quick tip on how to upgrade the jquery.once plugin in Drupal 7 without breaking current code.

Drupal 7 ships with jquery.once plugin version 1.2 that dates from 2013. For a project we needed to make code targeting the old 1.x and the 2.x work at the same time. In our case this was core javascript written for 1.x working with some code of ours designed for jquery.once 2.x.

The solution is easy: upgrade the core jquery.once to 2.x and add a polyfill to make it backwards compatible.

Language English More articles...
Categories: Planet Drupal

Profiling Drupal: XHprof, Uprofiler, Tideways with PHP7 on Linux and Windows

October 28, 2016 at 11:46am

Being able to analyze and monitor - with ease - the performance of your application is a key part to the success of any web based project. Not only because a slow site might negatively affect conversions, but as Drupal 8 is shifting away from websites and more into complex web based applications, specific business transactions are becoming more important. Considering Drupal's historical poor performance when it comes to "backend" operations, having proper profiling tools is a must.

Language English More articles...
Categories: Planet Drupal