-
Notifications
You must be signed in to change notification settings - Fork 0
Slow javascript
marvink edited this page Apr 8, 2013
·
1 revision
There is also a workaround implemented for those issues where javascript is very slow and page was rendered. If the user is fast enough he can click on an element that should be push a ajax request to the server. If the javascript is not loaded it results in a blank not styled fragment of the ajaxcall.
If you had such problems use <a href="#" data-href="examples.com/ajaxRequest"></a> instead of the normal way.
For buttons and input fields we need another workaround. In this case use <input type="submit" onclick="return false"> The onclick handler will be removed from the submit if the value of attribut onclick is only "return false". Otherwise you can also add diffrent click handlers on buttons.