I am building a maps website like google maps. There will be tiles of images connected to each other. The map will be explored by dragging with mouse where after each drag, new images will be loaded. In order to have explore-by-dragging functionality, I have found two ways:
The question is, is there a performance difference between the methods? (mainly in terms of rendering speed and dragging smoothness) Also, are there any other criteria to prefer one of the methods?
Scrolling is better because CSS transforms can cause document re-flows, which are quite expensive.
See: http://www.stubbornella.org/content/2009/03/27/reflows-repaints-css-performance-making-your-javascript-slow/
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