{"id":1660,"date":"2016-10-24T08:40:55","date_gmt":"2016-10-24T08:40:55","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=1660"},"modified":"2022-02-17T07:14:02","modified_gmt":"2022-02-17T07:14:02","slug":"blank-page-until-its-loaded","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/php\/page-control\/blank-page-until-its-loaded","title":{"rendered":"Blank page until its loaded"},"content":{"rendered":"<p>\nPut this near the top of the head section\n<\/p>\n<pre>\r\n<code>\r\n&lt;!-- CAUSE PAGE TO FADE IN ONCE LOADED - 1ST PART --&gt;\r\n&lt;style&gt;\r\nbody {\r\n  display: none;\r\n}\r\n&lt;\/style&gt;\r\n&lt;!-- LOAD JQUERY LIBRARIES --&gt;\r\n&lt;script src=&quot;https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.2\/jquery.min.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt; &lt;!--Should be first script imported\/first script on the page--&gt;\r\n&lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.9\/themes\/smoothness\/jquery-ui.css&quot; type=&quot;text\/css&quot; media=&quot;all&quot; \/&gt;\r\n&lt;script src=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.9\/jquery-ui.min.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt;\r\n\r\n<\/code><\/pre>\n<p>\nPut this after the &lt;\/body&gt; tag\n<\/p>\n<pre>\r\n<code>\r\n&lt;\/body&gt;\r\n\r\n&lt;!-- CAUSE PAGE TO FADE IN ONCE LOADED -2ND PART --&gt;\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\n$(window).load(function() {\r\n  \/\/ When the page has loaded\r\n  $(&quot;body&quot;).fadeIn(2000);\r\n});\r\n&lt;\/script&gt;\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Put this near the top of the head section &lt;!&#8211; CAUSE PAGE TO FADE IN ONCE LOADED &#8211; 1ST PART &#8211;&gt; &lt;style&gt; body { display: none; } &lt;\/style&gt; &lt;!&#8211; LOAD JQUERY LIBRARIES &#8211;&gt; &lt;script src=&quot;https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.7.2\/jquery.min.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt; &lt;!&#8211;Should be first script imported\/first script on the page&#8211;&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.9\/themes\/smoothness\/jquery-ui.css&quot; type=&quot;text\/css&quot; media=&quot;all&quot; \/&gt; &lt;script src=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.9\/jquery-ui.min.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt; Put [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-1660","post","type-post","status-publish","format-standard","hentry","category-page-control"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=1660"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1660\/revisions"}],"predecessor-version":[{"id":1661,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/1660\/revisions\/1661"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=1660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=1660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=1660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}