mootools / mootools-core

MooTools Core Repository
https://mootools.net
2.65k stars 510 forks source link

domready event does not fire on IOS safari #2776

Closed Adidi closed 7 years ago

Adidi commented 7 years ago

Checked it on iphone 6 in safari - if i set window.addEvent('domready',callback); the callback won't fire.

DimitarChristoff commented 7 years ago

This related to: http://stackoverflow.com/questions/40186332/mootools-click-event-not-working-in-iphone-6 ?

https://jsfiddle.net/1oymyddf/

I am on iphone7 and using mootools 1.6, it fires correctly.

<!DOCTYPE html>
<html>
<head>
  <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mootools/1.6.0/mootools-core.js"></script>
</head>
<body>
  <script>
window.addEvent('domready', () => {
    alert('Done')
});
  </script>
</body>
</html>

so, which version of MooTools do you use?

Adidi commented 7 years ago

iphone7 works fine for me. when I used with IOS6 (or iphone 6 - I am not really a fanboy to know this difference - i use android) i had this bug - had to switch to native DOMContentLoaded for it to work again

Oh - and I use latest mootools 1.6