<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="224662" data-post-id="224662">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="petelacey" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/petelacey/120/19932_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  petelacey
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Absolutely. I’ve pasted the code below. It’s pretty much the same as what I initially posted, but I changed the HTML to more closely reflect my production code, just in case that mattered.</p>
<p>I do not have IDs on each row. However, I just tried that locally and it made no difference.</p>
<p>It may be useful to know that if you watch the DOM being built in the “Elements” view of your dev tools, that you can see the outer div of each row (<code>&lt;div class="released-task complete"&gt;</code>) being created, then there’s the 20ish second pause, then the internals of each row appear.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule ReadyroomWeb.Speriment do
  use Phoenix.LiveView

  def render(assigns) do
    use Phoenix.HTML
    ~L"""
    &lt;div class="container mb-3" style="max-width: 90%;"&gt;
      &lt;form id="filter-form" phx-change="filter"&gt;
        &lt;%= text_input(:filter, :value, value: @filter_value, class: "form-control my-5", placeholder: "filter by", phx_debounce: "1000") %&gt;
      &lt;/form&gt;

      &lt;div id="released-tasks" class="released-tasks download-hook" phx-hook="InspectorView"&gt;
        &lt;%= for task &lt;- @renderable do %&gt;
          &lt;div class="released-task complete"&gt;

            &lt;div class="released-meta"&gt;
              &lt;div class="released-meta-grid"&gt;
                &lt;i class="fas fa-chevron-right"&gt;&lt;/i&gt;&lt;div&gt;&lt;%= task %&gt;&lt;/div&gt;
                &lt;i class="fas fa-user"&gt;&lt;/i&gt;&lt;div data-toggle="tooltip" title="Requested by"&gt;&lt;%= "Some User" %&gt;&lt;/div&gt;
                &lt;i class="fas fa-clock"&gt;&lt;/i&gt;&lt;div class='local-time' data-toggle="tooltip" title="Requested at"&gt;&lt;%= NaiveDateTime.utc_now() |&gt; NaiveDateTime.truncate(:second) %&gt;&lt;/div&gt;
                &lt;i class="far fa-clock"&gt;&lt;/i&gt;&lt;div class='local-time' data-toggle="tooltip" title="Fulfilled at"&gt;&lt;%= NaiveDateTime.utc_now() |&gt; NaiveDateTime.truncate(:second) %&gt;&lt;/div&gt;
                &lt;i class="fas fa-check"&gt;&lt;/i&gt;
                &lt;span&gt;Complete&lt;/span&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            &lt;div class="released-content"&gt;
              &lt;div class="released-title"&gt;&lt;%= "This is the request: #{task}" %&gt;&lt;/div&gt;
              &lt;div class="released-response"&gt;
              &lt;strong class="mr-2 text-info"&gt;Response:&lt;/strong&gt;&lt;span&gt;&lt;%= "This is the response: #{task}" %&gt;&lt;/span&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="released-files uploads"&gt;

              &lt;table class="table table-borderless table-sm table-hover uploads"&gt;
                &lt;tbody&gt;
                    &lt;tr&gt;
                      &lt;td&gt; Filename &lt;/td&gt;
                      &lt;td&gt; File Length &lt;/td&gt;

                      &lt;td class="nowrap"&gt;
                        &lt;a href="#" &gt;
                          &lt;i class="fas fa-long-arrow-alt-down"&gt;&lt;/i&gt;&amp;nbsp;A non-working download link
                        &lt;/a&gt;
                      &lt;/td&gt;

                      &lt;td align="right"&gt;
                        &lt;span class="file-size nowrap"&gt;File Size&lt;/span&gt;
                      &lt;/td&gt;
                    &lt;/tr&gt;
                &lt;/tbody&gt;
              &lt;/table&gt;

            &lt;/div&gt;
          &lt;/div&gt;
        &lt;% end %&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    """
  end

  def mount(_params, _session, socket) do
    data = 0..200
    {:ok, assign(socket, filter_value: 1, data: data, renderable: data)}
  end

  def handle_event("filter", %{"filter" =&gt; %{"value" =&gt; ""}}, socket) do
    handle_event("filter", %{"filter" =&gt; %{"value" =&gt; "1"}}, socket)
  end

  def handle_event("filter", %{"filter" =&gt; %{"value" =&gt; filter}}, socket) do
    renderable = Enum.filter(socket.assigns.data, &amp;(rem(&amp;1, String.to_integer(filter)) == 0))
    {:noreply, assign(socket, renderable: renderable, filter_value: filter)}
  end
end
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="224662" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/multi-second-rendering-time-when-adding-elements-to-lv-page/41993/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-224662" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="224662"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="224674" data-post-id="224674">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="derek-zhou" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/derek-zhou/120/19943_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  derek-zhou
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It is triggering some crazy GC loop in the javascript. Can you remove all unnecessary js, css, bootstrap or others, and try again.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="224674" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/multi-second-rendering-time-when-adding-elements-to-lv-page/41993/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-224674" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="224674"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="224686" data-post-id="224686">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="petelacey" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/petelacey/120/19932_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  petelacey
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I owe you a beer, <a class="mention" href="/u/derek-zhou" rel="nofollow">@derek-zhou</a>. Removing all unnecessary JS and CSS caused the problem to go away. Putting it back slowly showed that the problem is with, of all things, Font Awesome. Add Font Awesome in, problem appears. Remove it, problem disappears. Add it back but remove all font awesome fonts, and the problem remains at bay.</p>
<p>I’m glad this problem is not in LiveView/Morphdom, and my apologies for coming here before exhausting all other possibilities. Thank you everyone for your help and insight.</p>
<p>But now I have some work to do. <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="224686" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/multi-second-rendering-time-when-adding-elements-to-lv-page/41993/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-224686" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="224686"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-solved cat-solved" title="Marked as solution"></div>
  </section>
</div>
    <div class="postbit" id="224717" data-post-id="224717">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="petelacey" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/petelacey/120/19932_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  petelacey
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Follow up for anyone else who may hit this problem, it’s the “Font Awesome with JavaScript” (SVG) implementation (all.js) that has the problem. Switching to the web font version (all.css) also eliminates the issue. Note, this may not be a viable workaround for everyone.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="224717" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/multi-second-rendering-time-when-adding-elements-to-lv-page/41993/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-224717" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="224717"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>