Skip to content

Instantly share code, notes, and snippets.

@allquixotic
Last active December 29, 2015 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allquixotic/7677760 to your computer and use it in GitHub Desktop.
Save allquixotic/7677760 to your computer and use it in GitHub Desktop.
browser crash ff linux
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>FF Linux SVG Browser Crash</title>
<script type="text/javascript">
var i = 0, j = 2500, removePrev = false;
var urls = ['http://openclipart.org/people/lalolalo/lalolalo_kagami_mochi.svg','http://openclipart.org/people/lijenhsin/lijenhsin_head_mirror.svg','http://openclipart.org/people/johnny_automatic/johnny_automatic_mirror_drawing.svg','http://openclipart.org/people/milker/milker_Can_You_See_Me_.svg','http://openclipart.org/people/barthm8s/barthm8s_Heiko-Barth_GlassButton_Mirror_Shadow.svg','http://openclipart.org/people/sophokles/sophokles_Yet_another_arrow_2.svg','http://openclipart.org/people/eeyrsja/eeyrsja_Disco_Ball.svg','http://openclipart.org/people/Anonymous/Anonymous_Disco_ball.svg','http://openclipart.org/people/tom/tom_2_fold_symmetry.svg','http://openclipart.org/people/tom/tom_4_fold_symmetry.svg','http://openclipart.org/people/tom/tom_kaleidoscope_3_fold_symmetry.svg','http://openclipart.org/people/tom/tom_kaleidoscope_infinite_repeat.svg','http://openclipart.org/people/tom/tom_kaleidoscope_infinite_repeat_1.svg','http://openclipart.org/people/insan/genesis-mirror.svg','http://openclipart.org/people/alexkirsch/abstract-splat-mirror.svg','http://openclipart.org/people/10binary/source-plain.svg','http://openclipart.org/people/german velez/1308153641.svg','http://openclipart.org/people/gsagri04/Mirror.svg','http://openclipart.org/people/tzunghaor/vanity2.svg','http://openclipart.org/people/GR8DAN/showbizframe.svg','http://openclipart.org/people/hatalar205/mirror.svg','http://openclipart.org/people/ksrujana96/1346748111.svg','http://openclipart.org/people/ksrujana96/srujana21.svg','http://openclipart.org/people/ksrujana96/1349152067.svg','http://openclipart.org/people/mediobit/boton-reflejado.svg','http://openclipart.org/people/Merlin2525/Disco_Dancers_Remix_1_by_Merlin2525.svg','http://openclipart.org/people/Merlin2525/Disco_Dancers_Remix_2_by_Merlin2525.svg','http://openclipart.org/people/Merlin2525/Disco_Ball_Remix_by_Merlin2525.svg','http://openclipart.org/people/liftarn/retrolady.svg','http://openclipart.org/people/tomas_arad/tomas_arad_5b9f723c.svg'];
var tmp = null;
function renderNext()
{
var db = document.getElementById('docbody');
if(removePrev == true && i > 0)
{
var removalsTemplate = ['p', 'img', 'br'];
for(var q = 0; q < removalsTemplate.length; q++)
{
var remv = document.getElementById(removalsTemplate[q] + (i-1));
db.removeChild(remv);
}
}
var elem = document.createElement("p");
elem.id = "p" + i;
elem.textContent = urls[i];
db.appendChild(elem);
elem = document.createElement("img");
elem.id = "img" + i;
elem.src = urls[i];
elem.height = 60;
elem.width = 60;
db.appendChild(elem);
elem = document.createElement("br");
elem.id = "br" + i;
db.appendChild(elem);
i++;
if(i >= urls.length)
{
clearInterval(tmp);
}
}
function goCoexist()
{
removePrev = false;
tmp = setInterval(renderNext, j);
}
function goDestructive()
{
removePrev = true;
tmp = setInterval(renderNext, j);
}
</script>
</head>
<body id="docbody">
<p>hi</p>
<input id='hi' type='button' onclick='javascript:goCoexist()' value='Go Sequential'/><br>
<input id='hi2' type='button' onclick='javascript:goDestructive()' value='Go Destructive'/><br>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment