Consolidate <script> tags in the diff viewer and reviews.

Review Request #4384 — Created Aug. 3, 2013 and submitted

Information

Review Board
master

Reviewers

Consolidate <script> tags in the diff viewer and reviews.

Every time the browser encounters a <script> tag, it blocks any
downloads or processing of files until that tag has finished. In our
case, it also makes things difficult for require.js, because most of our
<script> tags depend on our objects, which may not be loaded yet.

Now, we just move all the initialization into the same <script> that
sets up the page. That helps code readability and solves a lot of these
issues.

In the case of the diff viewer, I've also moved the scripts-post block
to the end of the file, to put it in page order. Along with that, I
removed the file index at the footer, since it no longer works and will
be replaced anyway.
Tested each of the pages to make sure they loaded correctly.
Description From Last Updated

Typo.

daviddavid
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
      Ignored Files:
        reviewboard/templates/diffviewer/view_diff.html
        reviewboard/templates/reviews/review_detail.html
        reviewboard/templates/reviews/reviewable_page_data.js
    
    
  2. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
      Ignored Files:
        reviewboard/templates/diffviewer/view_diff.html
        reviewboard/templates/reviews/review_detail.html
        reviewboard/templates/reviews/reviewable_page_data.js
    
    
  2. 
      
david
  1. 
      
  2. Show all issues
    Typo.
  3. 
      
chipx86
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
      Ignored Files:
        reviewboard/templates/diffviewer/view_diff.html
        reviewboard/templates/reviews/review_detail.html
        reviewboard/templates/reviews/reviewable_page_data.js
    
    
  2. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
      Ignored Files:
        reviewboard/templates/diffviewer/view_diff.html
        reviewboard/templates/reviews/review_detail.html
        reviewboard/templates/reviews/reviewable_page_data.js
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Loading...