I have created a web application, That runs a preloader before displaying content on the page and the preloader is a full screen view with basic content like loading on it. Here is the code I'm using for the preloader
$(document).ready(function(){
setTimeout(function(){
$('.loader-main').addClass('loader-inactive');
},0)
});
This works perfectly on the following tested devices:
Windows, Mac, Android (chrome), iphone8, iphone6s. But while testing on iphone5s, It keeps the loading view on and never fades out, however other contents of the page can be seen since the loader has an opacity of 80%,
I've made researches but can't find any thing, Removed the preloader and it worked fine on the iphone5s, However we can't have the App without a preloader.
Aucun commentaire:
Enregistrer un commentaire