I have a rails app serving up static content (for now).
Every time I change view it reloads the application.html.erb content which makes the header and footer flicker and look ugly.
I have another rails app that doesn’t do this. I am not clear on how the mechanism works, assumably with some sort of ajax call for the individual view content.
My route.rb is as follows
Zode64::Application.routes.draw do
get "contact/index"
get "about/index"
get "home/index"
root :to => 'home#index'
match "home" => "home#index"
match "about" => "about#index"
match "contact" => "contact#index"
end
And my link is like this
<li><%= link_to "home", "home" %></li>
The app I am having trouble with is here http://www.zode64.com the app where I see the application.html.erb not loading is here http://whatsthebeef.org/blog.
What do I need to do to prevent this flicker?
Nope, it’s just you. The flicker is either the way your browser is rendering the page, your internet connection, or the application/server’s response time. (Given that you notice a difference between the two, it’s probably not the first.)
There is no AJAX page loading on either site, they both completely render and send the page to the browser for each request.
For example, I see little to no flicker on both sites.