Permalink
Browse files

preloading the progress image, fixes render

there may be a better way to do this yet, perhaps
by having the image already in a hidden element
  • Loading branch information...
1 parent 7f5d0d4 commit 59cee5152e49cac86b639701a7f3c71b709bc315 @ptone ptone committed Mar 16, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 templates/package/package.html
@@ -158,12 +158,12 @@ <h2 class="rtd" style="display: none;">Read the Docs</h2>
<script type="text/javascript">
$(function() {
-
+ pic1=new Image();
+ pic1.src="{{ STATIC_URL }}img/progress.gif";
$('#fetch-cell > a').click(function(){
$('#fetch-cell').html('Updating <img src="{{ STATIC_URL }}img/progress.gif">');
- }
- )
- });
+ })
+ });
</script>
<script type="text/javascript">

0 comments on commit 59cee51

Please sign in to comment.