Quantcast
Viewing all articles
Browse latest Browse all 4829

Simple Progressive Enhancement

@andrew1 wrote:

Hi everyone,

I've got a slow route that has both a chart and a table in it. The table loads fairly quickly but the chart can take a long time. They do not share data but I'm passing an RSVP.hash back from the model hook so they both wait for the chart data to be loaded.

How would you recommend breaking the data out so that they can be independent?

I was thinking of creating a nested route for the chart so that I could show the table and just show a loader on that piece of the page until the chart data comes back. But, I wanted to get everyone's thoughts on this. The route is beginning to get deeply nested already. If there's a way to avoid nesting in this situation, that would be worth investigating.

Thanks!

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles