Procrastination, especially in the academic or scholastic contexts of your two examples, is often called
- to cramcram (vt)
postpone studying a subject until the few hour prior to a formal examination.
refers to the “cramming” of preparations in a small available time.
Variantly, the non-idiomatic procrastinator, or to procrastinate, could be adequate.