Fix loading ajax-loader.gif in production mode.