What is the highest performance way to render a grid of thousands of tiles in a web browser?
-
DIVs? HTML5 canvas?
-
Answer:
Depends on the browser, what you'd put in the divs, etc. Try a few different approaches in the browsers that matter to you in order to get an idea. That said, I would expect canvas to be faster than thousands of divs. Approaches other than canvas or divs that might bear fruit depending on the specifics: preprocessed imagery, table layouts, flash, and webGL. Multi-scale zoomable imagery http://zoom.it/pages/api/ (http://Zoom.it is the new name for Seadragon) http://openzoom.org Using custom map tiles http://code.google.com/apis/maps/documentation/javascript/maptypes.html#CustomMapTypes http://www.microsoft.com/maps/isdk/ajax/ http://mapnik.org/faq/ http://tilestache.org/ (influenced by the older http://tilecache.org/) http://modestmaps.com/ http://www.mapstraction.com/ A couple editable table/grid implementations http://github.com/mleibman/SlickGrid/wiki http://www.datatables.net/
Shawn O'Connor at Quora Visit the source
Other answers
DIVs.
Raghavendra Kidiyoor
Even up to a few hundred elements, IE < 9 can be very slow to create and render. Do you need to render the entire grid at once, or just a portion of it? If the latter, you could use some kind of dynamic render-on-demand system, possibly reusing grid tiles that are no longer in view. The main problem you'll face is that the slow browsers (IE 6, 7 and 8) also lack support for the best solution: HTML Canvas. In this case, if you need to support these browsers, maybe your best option would be Flash.
Andy Farrell
Related Q & A:
- What Is Best Free Web Browser For S60v5?Best solution by Yahoo! Answers
- What would be the best way to ship a wii?Best solution by Yahoo! Answers
- What's the most effective way to clean a futon?Best solution by Yahoo! Answers
- What is the easiest/cheapest way to convert a RCA signal to VGA or DVI?Best solution by Yahoo! Answers
- What is the most innovative way to market a brand or product?Best solution by blog.marketo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.