<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; JS: Как узнать, то что контент web страницы загружен полностью]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10787</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10787&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «JS: Как узнать, то что контент web страницы загружен полностью».]]></description>
		<lastBuildDate>Mon, 13 Jul 2015 23:57:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[JS: Как узнать, то что контент web страницы загружен полностью]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=95462#p95462</link>
			<description><![CDATA[<p>Имеется страница:<br /><a href="https://theme.wordpress.com/themes/features/infinite-scroll/">https://theme.wordpress.com/themes/feat … te-scroll/</a><br />Как узнать, что джаваскрипт загрузил ее полностью? Если да, то куда копать?<br />На автохотки написал так, но это как-то криво:<br /></p><div class="codebox"><pre><code>ComObjError(false)
oIE := ComObjCreate(&quot;InternetExplorer.Application&quot;)
oIE.visible := True, oIEHWND := oIE.HWND
WinMaximize ahk_id %oIEHWND%
oIE.Navigate( &quot;https://theme.wordpress.com/themes/features/infinite-scroll/&quot; )
While oIE.readyState != 4 || oIE.document.readyState != &quot;complete&quot; || oIE.busy
   Sleep, 10
loop
{
   pos := oIE.document.documentElement.scrollTop
   loop 20
   {
      oIE.document.parentWindow.scrollBy(0, 10000)
      if (pos != oIE.document.documentElement.scrollTop)
         continue, 2
      sleep, 50
   }
   break
}
MsgBox, DONE!</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 13 Jul 2015 23:57:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=95462#p95462</guid>
		</item>
	</channel>
</rss>
