Work around "document not ready"

If you start the gallery while the page is still loading (document.ready was not yet fired, e.g. on pages with external dependencies like analytics, ads), a javascript-error was thrown for transform was undefined despite transition being defined.

As transition/transform are not absolutely necessary, this patch simply disables them until both transition and transform are defined.