- Posts: 5
- Thank you received: 0
iPad 1 - images sometimes don't load
-
dandvdsn
Inactive member - Topic Author
- New Member
Less
More
13 years 3 days ago - 13 years 3 days ago #14414
by dandvdsn
iPad 1 - images sometimes don't load was created by dandvdsn
I have just put teachforfriendship.org online using the Hot Flashes template. Getting lots of positive comments. It's a great template and very well documented.
One person using an iPad told me that sometimes the home page / interior page images don't load leaving a blank white area.
I checked that out on my own iPad 1, MB292LL, version 4.3.5, Safari Browser and it is a problem. I could not find anything systematic over many tries regarding when an image loads and when it doesn't.
I also notice this happening occasionally on my iMac when I move the cursor quickly over the 5 main links. The last one, the one most to the right, seems to be the worst.
Are there any changes I can make that would help?
One person using an iPad told me that sometimes the home page / interior page images don't load leaving a blank white area.
I checked that out on my own iPad 1, MB292LL, version 4.3.5, Safari Browser and it is a problem. I could not find anything systematic over many tries regarding when an image loads and when it doesn't.
I also notice this happening occasionally on my iMac when I move the cursor quickly over the 5 main links. The last one, the one most to the right, seems to be the worst.
Are there any changes I can make that would help?
Last edit: 13 years 3 days ago by dandvdsn.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 3 days ago #14434
by ivan.milic
Replied by ivan.milic on topic Re: iPad 1 - images sometimes don't load
Hi, open templates\hot_flashes\flashes_menu\menu.js
you will find this:
replace it with this:
or download template tomorrow and take new menu.js from it.
you will find this:
Code:
var $this = jQuery(this);
var ind = $this.parent().index();
/* if we hover the current one, then don't do anything */
if(ind == current)
return;
//item is bg1 or bg2 or bg3, depending where we are hovering */
var item = e.target.id;
replace it with this:
Code:
var ind = jQuery(this).parent().index();
/* if we hover the current one, then don't do anything */
if(ind == current)
return;
//item is bg1 or bg2 or bg3, depending where we are hovering */
var item = jQuery(this).attr('id');
or download template tomorrow and take new menu.js from it.
Please Log in to join the conversation.
-
dandvdsn
Inactive member - Topic Author
- New Member
Less
More
- Posts: 5
- Thank you received: 0
13 years 2 days ago #14452
by dandvdsn
Replied by dandvdsn on topic Re: iPad 1 - images sometimes don't load
This seems to fix the iMac response but the iPad response is about the same.
I found the following bit of code on
blog.0100.tv/2010/05/fixing-the-hover-ev...-the-ipadiphoneipod/
To emulate the hover we simply add an event listener to the element we want to have a hover event. In jQuery we do this (make sure you insert it into document.ready):
//ipad and iphone fix
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
$(".menu li a").click(function(){
//we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event
//strange
});
}
That should enable the element to be touched, and stimulate and iPad hover event.
Could this be used somewhere in the template's code?
Thanks for the prompt responses.
Dan
I found the following bit of code on
blog.0100.tv/2010/05/fixing-the-hover-ev...-the-ipadiphoneipod/
To emulate the hover we simply add an event listener to the element we want to have a hover event. In jQuery we do this (make sure you insert it into document.ready):
//ipad and iphone fix
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
$(".menu li a").click(function(){
//we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event
//strange
});
}
That should enable the element to be touched, and stimulate and iPad hover event.
Could this be used somewhere in the template's code?
Thanks for the prompt responses.
Dan
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 2 days ago #14478
by ivan.milic
Replied by ivan.milic on topic Re: iPad 1 - images sometimes don't load
Hi, we tested that yesterday on ipad1 and ipad2 , maybe you did not apply fix right, or you just need to somehow refresh (try Settings->Safari->Clear history)
Best download template again and copy menu.js from new template.
Best download template again and copy menu.js from new template.
Please Log in to join the conversation.
Time to create page: 0.175 seconds