1. 21 Oct, 2016 1 commit
  2. 06 Oct, 2016 2 commits
  3. 20 Sep, 2016 1 commit
  4. 14 Sep, 2016 1 commit
  5. 06 Apr, 2016 1 commit
    • Make Capa problems do initial load without AJAX. · dbee08c7
      Before this commit, calling the student_view on a capa problem would
      cause it to render an empty placeholder <div>, wait for the
      DOMContentLoaded event to be fired, and then make AJAX requests to the
      the problem_get handlers to retrieve the HTML it needed to render the
      actual problems. This can significantly increase the end user load
      times for pages, particularly when there are many problems in a
      vertical.
      
      This commit takes a very conservative approach and has the server side
      add the rendered HTML into a new data-content attribute on the <div>
      enclosing the problem. When Capa's JS initialization runs, it grabs
      from that data-content attribute rather than reaching over the network
      for an AJAX request.
      
      I had attempted to make it somewhat smarter and push the rendered
      problem straight into the document instead of relying on the
      data-content attribute. This was faster, and should be our long term
      goal. However, it caused odd bugs, particularly around MathJAX
      rendering, and I never quite tracked the issue down. I'm still going
      forward with these changes because it's significantly better than the
      current situation that students have to deal with, and we can make the
      JS more performant in a future iteration.
      
      [PERF-261]
      David Ormsbee committed
  6. 17 Mar, 2016 1 commit
  7. 26 Feb, 2016 1 commit
    • Make Capa problems do initial load without AJAX. · 9984bbc2
      Before this commit, calling the student_view on a capa problem would
      cause it to render an empty placeholder <div>, wait for the
      DOMContentLoaded event to be fired, and then make AJAX requests to the
      the problem_get handlers to retrieve the HTML it needed to render the
      actual problems. This can significantly increase the end user load
      times for pages, particularly when there are many problems in a
      vertical.
      
      This commit takes a very conservative approach and has the server side
      add the rendered HTML into a new data-content attribute on the <div>
      enclosing the problem. When Capa's JS initialization runs, it grabs
      from that data-content attribute rather than reaching over the network
      for an AJAX request.
      
      I had attempted to make it somewhat smarter and push the rendered
      problem straight into the document instead of relying on the
      data-content attribute. This was faster, and should be our long term
      goal. However, it caused odd bugs, particularly around MathJAX
      rendering, and I never quite tracked the issue down. I'm still going
      forward with these changes because it's significantly better than the
      current situation that students have to deal with, and we can make the
      JS more performant in a future iteration.
      
      [PERF-261]
      David Ormsbee committed
  8. 05 Feb, 2014 1 commit
  9. 19 Jul, 2013 1 commit
  10. 29 Jan, 2013 1 commit
  11. 03 Jul, 2012 1 commit
  12. 29 Jun, 2012 1 commit
  13. 06 Jun, 2012 1 commit
  14. 31 May, 2012 1 commit
  15. 19 Mar, 2012 3 commits
  16. 01 Feb, 2012 1 commit
  17. 16 Dec, 2011 1 commit