CLSN-1812 replace $http by $.ajax in offline directive