davidcalhoun / energize.js

A tiny JavaScript snippet to make links snappy on touch devices
MIT License
182 stars 30 forks source link

Missing link action after 'Add to Home Screen' #2

Open thirdman opened 12 years ago

thirdman commented 12 years ago

David,

I'm not sure if this is an issue or not, but I thought I'd mention it just in case! :-)

I've been setting up a little jquery mobile app and testing it online. When I 'Add to home screen' on my iphone to test it full screen, I lose link behaviour between pages. It doesn't occur on my footer nav, just on inter-page links in the page content. Tapping on links just bounces you to the 'home' screen. The problem goes away if I don't include energize.js in the top of my document.

It's quite possible I've missed something or screwed something up, though!

Gareth

davidcalhoun commented 12 years ago

Thanks for the heads up - I hadn't tested in full screen mode for a while, so I must've messed something up there. Will look into it when I can!

danielalexiuc commented 12 years ago

I love this extension David, it makes an amazing difference.

But another issue on "add to home screen" (when using jquery mobile) - I seem to lose all the "Back" links that have been generated by using:

data-add-back-btn="true"

Also the page loading indicator (the one in the iPhone status bar) seems to spin for ages - I'm not sure why.

lobbin commented 11 years ago

We're experiencing the same problem. When using as a "home screen" application, it simply stops working.

davidcalhoun commented 11 years ago

Sorry for the delay - I've been on a long, long break from coding.

I tested on iOS 6.1.3 with jQuery Mobile 1.2.1: http://jquerymobile.com/demos/1.2.1/docs/pages/multipage-template.html

Seems to work for me when energize.js is included.

For folks who can see the issue: can you include a code sample or link to a demo? Also be sure to include version numbers - this might be something that was a bug, but got fixed?

lobbin commented 11 years ago

Still not working, will try to put a small sample together.

Edit: I might be mistaken, it might be related to some optimizations we've made in the last weeks. Regular jQM lists seems to work. Still going to try to make an example though :)

lobbin commented 11 years ago

This works in Mobile Safari, but not after it's been added to home screen as a web app.

http://jsbin.com/onizoc/2/

papagel commented 10 years ago

Energize.js does not work on Home mode still... any way around this issue?