JQuery: fire script inline with link -


i think may know what's causing of animation flicker on mobile safari (backface styling reduced 90% of not all). noticed if tap link on mobile safari flicker if press link fraction of second longer never flickers. think there issue lag i'd fire script inline link itself. how done?

link in body

<a href="" id="touchmenubutton"></a> 

script @ end of html document

var touchmenubutton = $("#touchmenubutton"); var touchmenucanvas = $("#touchmenucanvas"); var touchmenudrawer = $("#touchmenudrawer"); touchmenubutton.on("click",function(e){     e.preventdefault();     touchmenucanvas.toggleclass("canvas-open");     touchmenudrawer.toggleclass("drawer-open drawer-closed");     }); 


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -