{"id":92,"date":"2023-08-25T17:32:41","date_gmt":"2023-08-25T17:32:41","guid":{"rendered":"\/\/api.jquerymobile.com\/1.3\/?p=92"},"modified":"2023-08-25T17:32:41","modified_gmt":"2023-08-25T17:32:41","slug":"pageload","status":"publish","type":"post","link":"https:\/\/api.jquerymobile.com\/1.3\/pageload\/","title":{"rendered":"pageload"},"content":{"rendered":"<article id=\"pageload1\" class=\"entry event\"><h2 class=\"section-title\">\n<span>pageload event<\/span><span class=\"version-details\">version added: 1.0<\/span>\n<\/h2>\n<div class=\"entry-wrapper\">\n<p class=\"desc\"><strong>Description: <\/strong>Triggered after the page is successfully loaded and inserted into the DOM.<\/p>\n<ul class=\"signatures\"><li class=\"signature\"><h4 class=\"name\">jQuery( &quot;.selector&quot; ).on( &quot;pageload&quot;, function( event ) { ... } )<\/h4><\/li><\/ul>\n<div class=\"longdesc\" id=\"entry-longdesc\">\n\t\t<p>Callbacks bound to this event will be passed a data object as its 2nd arg. This object contains the following information:<\/p>\n            <ul>\n            \t<li>\n<code>url<\/code> (string)\n\t\t\t\t\t<ul>\n           \t    \t\t<li>The absolute or relative URL that was passed into <code>$.mobile.loadPage()<\/code> by the caller.<\/li>\n          \t    \t<\/ul>\n            \t<\/li>\n            \t<li>\n<code>absUrl<\/code> (string)\n            \t\t<ul>\n            \t    \t<li>The absolute version of the url. If url was relative, it is resolved against the url used to load the current active page.<\/li>\n          \t    \t<\/ul>\n            \t<\/li>\n            \t<li>\n<code>dataUrl<\/code> (string)\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>The filtered version of absUrl to be used when identifying the page and updating the browser location when the page is made active.<\/li>\n\t\t\t\t\t<\/ul>\n\t\t\t\t<\/li>\n\t\t\t\t<li>\n<code>options<\/code> (object)\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>This object contains the options that were passed into <code>$.mobile.loadPage()<\/code>.<\/li>\n\t\t\t\t\t<\/ul>\n            \t<\/li>\n            \t<li>\n<code>xhr<\/code> (object)\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>The jQuery XMLHttpRequest object used when attempting to load the page. This is what gets passed as the 3rd argument to the framework&apos;s <code>$.ajax()<\/code> success callback.<\/li>\n\t\t\t\t\t<\/ul>\n            \t<\/li>\n            \t<li>\n<code>textStatus<\/code> (null or string)\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>According to the jQuery Core <a href=\"\/\/api.jquery.com\/jQuery.ajax\/\">documentation<\/a>, this will be a string describing the status. This is what gets passed as the 2nd argument to the framework&apos;s <code>$.ajax()<\/code> error callback.<\/li>\n\t\t\t\t\t<\/ul>\n            \t<\/li>\n           \t <\/ul>\n\t<\/div>\n<\/div><\/article>","protected":false},"excerpt":{"rendered":"<p>Triggered after the page is successfully loaded and inserted into the DOM.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-events"],"_links":{"self":[{"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":1,"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/posts\/92\/revisions\/93"}],"wp:attachment":[{"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/api.jquerymobile.com\/1.3\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}