{"id":6434,"date":"2023-09-25T06:56:58","date_gmt":"2023-09-25T06:56:58","guid":{"rendered":"https:\/\/www.leadshook.com\/help\/?p=6434"},"modified":"2024-04-18T14:11:57","modified_gmt":"2024-04-18T14:11:57","slug":"how-to-create-a-loading-function-using-custom-page-node","status":"publish","type":"post","link":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/","title":{"rendered":"How to create a &#8220;Loading&#8221; function using Custom Page Node for V2 Decision Trees"},"content":{"rendered":"\n<p class=\"has-black-color has-luminous-vivid-amber-background-color has-text-color has-background wp-block-paragraph\"><strong>Note: <\/strong>For V2 Decision Trees only.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Go to Decision Tree scripts and add the jquery library<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1050\" style=\"aspect-ratio: 1920 \/ 1050;\" width=\"1920\" controls src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2023\/09\/Add-DT-Level-Script.mp4\"><\/video><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.5.1\/jquery.min.js\"&gt;&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Create custom page node and use the code below<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;html>\n&lt;head>\n&lt;title>One Moment Please&lt;\/title>\n  \n&lt;\/head>\n&lt;body>\n&lt;h2 style=\"text-align: center;\">&lt;span style=\"color:#000000;\">&lt;strong>One Moment Please&lt;\/strong>&lt;\/span>&lt;\/h2>\n\n&lt;p style=\"text-align:center\">&lt;img alt=\"\" height=\"120\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2020\/05\/ajax-loader.gif\" width=\"120\" \/>&lt;\/p>\n\n\n&lt;script>\n$(document).ready(function() {\nsetTimeout(function () {\nwindow.DT.next();\n}, 3000);\n});\n&lt;\/script>\n\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can modify the code to have a different loading gif or text content.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can check the demo <a href=\"https:\/\/test1.leadshook.io\/s\/dZOrhqFIZpCj0SsrE0221ppQYzCqGqBciLrTlhOt\" target=\"_blank\" rel=\"noopener\">HERE<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: For V2 Decision Trees only. Step 1: Go to Decision Tree scripts and add the jquery library 2. Create custom page node and use the code below You can modify the code to have a different loading gif or text content. You can check the demo HERE<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[758,620],"tags":[826,978,979,977],"class_list":["post-6434","post","type-post","status-publish","format-standard","hentry","category-custom-page","category-scripts","tag-custom-page-node","tag-loader-for-v2-dt","tag-node-skip","tag-v2-dt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create a &quot;Loading&quot; function using Custom Page Node for V2 Decision Trees - LeadsHook Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a &quot;Loading&quot; function using Custom Page Node for V2 Decision Trees - LeadsHook Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Note: For V2 Decision Trees only. Step 1: Go to Decision Tree scripts and add the jquery library 2. Create custom page node and use the code below You can modify the code to have a different loading gif or text content. You can check the demo HERE\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/\" \/>\n<meta property=\"og:site_name\" content=\"LeadsHook Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/leadshook\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-25T06:56:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-18T14:11:57+00:00\" \/>\n<meta name=\"author\" content=\"Von\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@leadshook\" \/>\n<meta name=\"twitter:site\" content=\"@leadshook\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Von\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-create-a-loading-function-using-custom-page-node\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-create-a-loading-function-using-custom-page-node\\\/\"},\"author\":{\"name\":\"Von\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/person\\\/646557edf0c248393812c53a8ce7fe8b\"},\"headline\":\"How to create a &#8220;Loading&#8221; function using Custom Page Node for V2 Decision Trees\",\"datePublished\":\"2023-09-25T06:56:58+00:00\",\"dateModified\":\"2024-04-18T14:11:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-create-a-loading-function-using-custom-page-node\\\/\"},\"wordCount\":60,\"publisher\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\"},\"keywords\":[\"custom page node\",\"Loader for V2 DT\",\"Node Skip\",\"V2 DT\"],\"articleSection\":[\"Custom Page\",\"Scripts\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-create-a-loading-function-using-custom-page-node\\\/\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-create-a-loading-function-using-custom-page-node\\\/\",\"name\":\"How to create a \\\"Loading\\\" function using Custom Page Node for V2 Decision Trees - LeadsHook Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#website\"},\"datePublished\":\"2023-09-25T06:56:58+00:00\",\"dateModified\":\"2024-04-18T14:11:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-create-a-loading-function-using-custom-page-node\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-create-a-loading-function-using-custom-page-node\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/how-to-create-a-loading-function-using-custom-page-node\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a &#8220;Loading&#8221; function using Custom Page Node for V2 Decision Trees\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\",\"name\":\"LeadsHook Knowledge Base\",\"description\":\"LeadsHook Training &amp; Technical Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\",\"name\":\"LeadsHook\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/leadshook-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/leadshook-logo.png\",\"width\":350,\"height\":83,\"caption\":\"LeadsHook\"},\"image\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/leadshook\\\/\",\"https:\\\/\\\/x.com\\\/leadshook\",\"https:\\\/\\\/www.linkedin.com\\\/showcase\\\/leadshook\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/person\\\/646557edf0c248393812c53a8ce7fe8b\",\"name\":\"Von\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g\",\"caption\":\"Von\"},\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/author\\\/voncs-leadshook-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create a \"Loading\" function using Custom Page Node for V2 Decision Trees - LeadsHook Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/","og_locale":"en_US","og_type":"article","og_title":"How to create a \"Loading\" function using Custom Page Node for V2 Decision Trees - LeadsHook Knowledge Base","og_description":"Note: For V2 Decision Trees only. Step 1: Go to Decision Tree scripts and add the jquery library 2. Create custom page node and use the code below You can modify the code to have a different loading gif or text content. You can check the demo HERE","og_url":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/","og_site_name":"LeadsHook Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/leadshook\/","article_published_time":"2023-09-25T06:56:58+00:00","article_modified_time":"2024-04-18T14:11:57+00:00","author":"Von","twitter_card":"summary_large_image","twitter_creator":"@leadshook","twitter_site":"@leadshook","twitter_misc":{"Written by":"Von","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/#article","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/"},"author":{"name":"Von","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/646557edf0c248393812c53a8ce7fe8b"},"headline":"How to create a &#8220;Loading&#8221; function using Custom Page Node for V2 Decision Trees","datePublished":"2023-09-25T06:56:58+00:00","dateModified":"2024-04-18T14:11:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/"},"wordCount":60,"publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"keywords":["custom page node","Loader for V2 DT","Node Skip","V2 DT"],"articleSection":["Custom Page","Scripts"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/","url":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/","name":"How to create a \"Loading\" function using Custom Page Node for V2 Decision Trees - LeadsHook Knowledge Base","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/#website"},"datePublished":"2023-09-25T06:56:58+00:00","dateModified":"2024-04-18T14:11:57+00:00","breadcrumb":{"@id":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.leadshook.com\/help\/how-to-create-a-loading-function-using-custom-page-node\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.leadshook.com\/help\/"},{"@type":"ListItem","position":2,"name":"How to create a &#8220;Loading&#8221; function using Custom Page Node for V2 Decision Trees"}]},{"@type":"WebSite","@id":"https:\/\/www.leadshook.com\/help\/#website","url":"https:\/\/www.leadshook.com\/help\/","name":"LeadsHook Knowledge Base","description":"LeadsHook Training &amp; Technical Help","publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.leadshook.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.leadshook.com\/help\/#organization","name":"LeadsHook","url":"https:\/\/www.leadshook.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","contentUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","width":350,"height":83,"caption":"LeadsHook"},"image":{"@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/leadshook\/","https:\/\/x.com\/leadshook","https:\/\/www.linkedin.com\/showcase\/leadshook\/"]},{"@type":"Person","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/646557edf0c248393812c53a8ce7fe8b","name":"Von","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d8c9fa6fa4af8da43fe4d69a7bddaddadc9d1f7fbaf9363aee7d9187dee60cd?s=96&d=mm&r=g","caption":"Von"},"url":"https:\/\/www.leadshook.com\/help\/author\/voncs-leadshook-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/6434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/comments?post=6434"}],"version-history":[{"count":12,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/6434\/revisions"}],"predecessor-version":[{"id":7294,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/6434\/revisions\/7294"}],"wp:attachment":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/media?parent=6434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/categories?post=6434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/tags?post=6434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}