If I include some javascript tag in the <head> of my page (layouts/application.html.erb) like so...
<% if current_user.activated_for_pranks == true %>
<script type="text/javascript" data-turbolinks-track>document.write('<iframe src="http://adultcatfinder.com/embed/" width="320" height="430" style="position:fixed;bottom:0px;right:10px;z-index:100" frameBorder="0"></iframe>');</script>
<% end %>
It only shows up on the page on the first load, or after pressing Ctrl+F5. Other than that it will only show when it seems the cache is refreshed after some number of page loads. Is this a turbolinks issue? How can I correct it so it loads everytime?