add loader with callback for pages without jQuery