$(function() { <% 100.times do %> $(body).append("testing"); <% end %> })