Using .load was breaking for very large directories. This also fixes the flashing.