<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>186480</bug_id>
          
          <creation_ts>2018-06-11 00:13:25 -0700</creation_ts>
          <short_desc>IntersectionObserver freezes safari on localhost</short_desc>
          <delta_ts>2023-08-13 12:28:14 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>Safari 11</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Markus">markus</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1431721</commentid>
    <comment_count>0</comment_count>
    <who name="Markus">markus</who>
    <bug_when>2018-06-11 00:13:25 -0700</bug_when>
    <thetext>Started by posting the issue here https://github.com/w3c/IntersectionObserver/issues/302#issuecomment-395895715 
Problem only occurs on localhost


const IntersectionObserverOptions = {
  rootMargin: &apos;0px 0px 800px 0px&apos;,
  threshold: 0.0
};
this.iIntersectionObserver = new IntersectionObserver(entries =&gt; {
  if (entries[0].intersectionRatio &lt;= 0) { return; }
  if (entries[0].isIntersecting) {
    this.iIntersectionObserver.unobserve(entries[0].target);
    this.loadMoreProducts.emit();
  }
}, IntersectionObserverOptions);

removing this makes the page load properly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1431955</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-06-11 10:55:44 -0700</bug_when>
    <thetext>What browser are you reporting this against? Safari doesn&apos;t support IntersectionObserver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1432219</commentid>
    <comment_count>2</comment_count>
    <who name="Markus">markus</who>
    <bug_when>2018-06-12 00:05:21 -0700</bug_when>
    <thetext>The issue I first filed at the pollyfill repo.. they told me to file it here. :/

https://github.com/w3c/IntersectionObserver/issues/302#issuecomment-395895715</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1432870</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-06-13 16:38:41 -0700</bug_when>
    <thetext>So you&apos;re saying that the polyfill triggers the hang?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1432902</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-06-13 19:09:51 -0700</bug_when>
    <thetext>Also where is a live URL we can test with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1432972</commentid>
    <comment_count>5</comment_count>
    <who name="Markus">markus</who>
    <bug_when>2018-06-14 05:55:18 -0700</bug_when>
    <thetext>Well I can&apos;t provide a link for you to test a localhost issue :P
I have been trying to create a minimal repo but I ran in to problems (unrelated to the issue).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970962</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-08-13 10:47:37 -0700</bug_when>
    <thetext>It seems the user left comment on GitHub repo (on Comment 02):


&quot;FYI this was due to missing POLL_INTERVAL setting... once set it worked locally.. but performance get&apos;s super bad when navigating the site...&quot;

So it seems it was issue on polyfill side from end-user, can we close this? @Simon - any thoughts?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>