<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; JS: Как узнать, то что контент web страницы загружен полностью]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10787&amp;type=atom" />
	<updated>2015-07-13T23:57:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10787</id>
		<entry>
			<title type="html"><![CDATA[JS: Как узнать, то что контент web страницы загружен полностью]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=95462#p95462" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2015-07-13T23:57:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=95462#p95462</id>
		</entry>
</feed>
