Skip to content

Instantly share code, notes, and snippets.

@jamesfalkner
Created November 15, 2013 20:19
Show Gist options
  • Save jamesfalkner/7490919 to your computer and use it in GitHub Desktop.
Save jamesfalkner/7490919 to your computer and use it in GitHub Desktop.
## Long-running process hanging render
<em>Demo 2: Long-running process that hangs the rendering for about 10 seconds</em>
<h1>Hello, Liferay!</h1>
<img src="http://www.liferay.com/osb-community-theme/images/custom/heading.png">
## long-running process
#set ($start = $dateUtil.newDate())
#foreach ($i in [1..15000000])
#end
#set ($elapsed = $dateUtil.newDate().getTime() - $start.getTime())
<h3>That took forever! (${elapsed}ms)</h3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment