I'm building a Backbone app with jQuery and Bootstrap.
On Firefox everything is ok, but i have some dramatically slow performances on some $.offset() calculation with Webkit browsers ($.offset takes about 250 milliseconds to perform)
Has anybody already experienced such behavior ?
Note : the dom elements $.offset is applied to are placed into a Bootstrap carousel and some nested collapse widgets (which use css3 transition property...)
If possible, can you use pure JavaScript for that part? You can do so by using getBoundingClientRect()
:
element.getBoundingClientRect();
console.log(element.top, element.right, element.bottom, element.left);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With