Lazy-loading content with Turbo Frames and skeleton loader
01-Apr-2021 3330
Hotwire is a new suite of frontend tools from Basecamp for building “reactive Rails” apps while writing a minimal amount of JavaScript.While the most exciting feature to some is the real-time streaming of server rendered HTML, my favorite addition is the Turbo Frame.The Turbo Frame is a super-charged iFrame that doesn’t make you cringe when you use it. Frames represent a slice of your page and have their own navigation context.One incredibly powerful feature is lazy-loading a Frame. One example of this pattern that you probably see everyday is the GitHub activity feed:.
Lazy-loading content with Turbo Frames and skeleton loader #ruby #rubydeveloper #rubyonrails #Lazy-loading #content #Turbo #Frames #skeleton #loader #turbo https://rubyonrails.ba/link/lazy-loading-content-with-turbo-frames-and-skeleton-loader