### WhatsApp Business API Setup and Configuration Source: https://blog.zithara.com/how-to-apply-for-whatsapp-business-api-clchm0m5x795081jpvtv8zh343/ Steps to create a Facebook app, configure WhatsApp access, and generate initial API credentials. This involves selecting app type, providing app details, and setting up the WhatsApp Business Account. ```APIDOC App Creation and Configuration: 1. Select App Type: Choose 'Business' for apps aiding businesses. 2. App Details: Enter App Name and a contact email address. 3. Facebook Manager Account: Optionally add an existing Facebook Manager Account. 4. Create App: Click 'Create App' to add the app to the App Dashboard. WhatsApp Access Setup: 1. Navigate to App Dashboard: Select the created app. 2. Configure WhatsApp: Scroll down, click 'WhatsApp', then 'Setup'. 3. Business Manager: Select an existing Business Manager or create a new one. 4. Account Generation: A WhatsApp Business Account and a test phone number are generated. - The test number allows sending unlimited messages to 5 recipients. ``` -------------------------------- ### WhatsApp Automation Setup and Features Source: https://blog.zithara.com/whatsapp-automation-10-powerful-use-cases-for-businesses-clb7hvsri323751ml5xi0uivey/ Details on setting up WhatsApp automation, comparing the basic features of the WA Business App with the advanced capabilities of the WhatsApp Business API. It also covers bot pricing and API availability for chatbots. ```APIDOC WhatsApp Automation Setup: 1. WA Business App: - Description: Offers very basic automation features. - Cost: Free. - Use Case: Suitable for small businesses with simple needs. 2. WhatsApp Business API: - Description: Provides advanced automation features, suitable for larger businesses. - Use Case: Enables sophisticated chatbots and higher messaging volumes. - Requirement: Access to WhatsApp Business API is needed for advanced automation. WhatsApp Bot Pricing: - Basic Plans: Start at Rs 999 per month. - Features: Broadcasting, retargeting, templates. - Customized Solutions: Start at Rs 2,500. - Features: Project APIs, webhooks, higher messaging speeds. WhatsApp Bot API Availability: - Yes, WhatsApp has a WhatsApp Business API which can run chatbots. ``` -------------------------------- ### JavaScript: $$ejs Component Initialization Example Source: https://blog.zithara.com/debunking-23-myths-about-whatsapp-cloud-api-for-the-year-2023-clclq9i91126051qryqs3tzvw5/ Demonstrates the usage of the custom `$$ejs` component loader function to initialize multiple UI components. It includes a 'TocObserver', 'ImageLightbox', 'SocialShare', 'LeadGenForm', and 'CommentsSection', each with specific component names and props. ```javascript requestIdleCallback(function(){ $$ejs([ ['tocobservernSdZLcFGYR','TocObserver.f62094c2.js', {}], ['imagelightboxZdYlXJMdtm','ImageLightbox.923f28be.js', {}], ['socialsharewRSysxLzzS','Post/SocialShare.c53595f3.js', {"url":"https://blog.zithara.com/debunking-23-myths-about-whatsapp-cloud-api-for-the-year-2023-clclq9i91126051qryqs3tzvw5","small":true}], ['leadgenformtqnDTwWTrn','forms/LeadGenForm.7422bf26.js', {"leadsConfig":{"enable":true,"leadType":" MOBILE","ctaText":"Get in Touch","ctaLink":"https://zithara.ai/contact","emailNotifications":true,"postCuid":"site-level","customFields":[],"caption":"Get a Free Personalized Demo","headline":"10X Your Sales Now!!","placeholder":"Your Contact Number","successMessage":"Thank you, we will get back to you soon!","collectEmail":true,"featuredImageUrl":null},"postCuid":"clclq9i91126051qryqs3tzvw5","siteCuid":"cl2lip1ak366551kqo54n9tm9a","colorScheme":"#3153ef","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"All Posts","coAuthor":"Co-Author","page":"Page","contents":"Contents","pinnedPost":"Pinned Post","allRightsReserved":"All Rights Reserved","noCommentsYet":"No comments yet","addNewComment":"Add New Comment","yourCommentHasBeenSubmitted":"Your comment has been submitted","previousPost":"Previous Post","nextPost":"Next Post","searchTopics":"Search Topics","searchPlaceholderNav":"type to search","frequentlyAskedQuestions":"Frequently Asked Questions","featuredPosts":"Featured Posts","featuredPostTag":"Featured Post"}} ], ['commentssectionVbkYxVdzlt','Post/CommentsSection.f497b197.js', {"postCuid":"clclq9i91126051qryqs3tzvw5","siteCuid":"cl2lip1ak366551kqo54n9tm9a","buttonText":"Leave a comment","commentsTitleText":"Comments","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"Al"}} ] ]) }); ``` -------------------------------- ### Platform Install Badge Links Source: https://www.instagram.com/p/CZCDvOzBMLl/ URLs for platform-specific install badges (iOS, Android, Windows). ```json ["platform_install_badge_links", {"ios": "https:\/\/static.cdninstagram.com\/rsrc.php\/v4\/yt\/r\/Yfc020c87j0.png", "android": "https:\/\/static.cdninstagram.com\/rsrc.php\/v4\/yz\/r\/c5Rp7Ym-Klz.png", "windows_nt_10": "https:\/\/static.cdninstagram.com\/rsrc.php\/v4\/yu\/r\/EHY6QnZYdNX.png"}] ``` -------------------------------- ### Component Initialization Calls Source: https://blog.zithara.com/23-best-whatsapp-promotional-message-templates-for-2023-clcjufcmt208681oltsvk1w75m/ Demonstrates the usage of the `$$ejs` function to initialize specific components. It shows how to pass an array of component configurations, including their IDs, component file names, and associated props. ```javascript $$ejs([['tocobserverRGVqQnVkqx','TocObserver.f62094c2.js', {}], ['imagelightboxqZZpWSyNVn','ImageLightbox.923f28be.js', {}], ['socialshareDkQVCRVVgm','Post/SocialShare.c53595f3.js', {"url":"https://blog.zithara.com/23-best-whatsapp-promotional-message-templates-for-2023-clcjufcmt208681oltsvk1w75m","small":true}], ['leadgenformlVDLyVlpxw','forms/LeadGenForm.7422bf26.js', {"leadsConfig":{"enable":true,"leadType":" MOBILE","ctaText":"Get in Touch","ctaLink":"https://zithara.ai/contact","emailNotifications":true,"postCuid":"site-level","customFields":[],"caption":"Get a Free Personalized Demo","headline":"10X Your Sales Now!!","placeholder":"Your Contact Number","successMessage":"Thank you, we will get back to you soon!","collectEmail":true,"featuredImageUrl":null},"postCuid":"clcjufcmt208681oltsvk1w75m","siteCuid":"cl2lip1ak366551kqo54n9tm9a","colorScheme":"#3153ef","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"All Posts","coAuthor":"Co-Author","page":"Page","contents":"Contents","pinnedPost":"Pinned Post","allRightsReserved":"All Rights Reserved","noCommentsYet":"No comments yet","addNewComment":"Add New Comment","yourCommentHasBeenSubmitted":"Your comment has been submitted","previousPost":"Previous Post","nextPost":"Next Post","searchTopics":"Search Topics","searchPlaceholderNav":"type to search","frequentlyAskedQuestions":"Frequently Asked Questions","featuredPosts":"Featured Posts","featuredPostTag":"Featured Post"}}], ['commentssectionzkwjrpVbLt','Post/CommentsSection.f497b197.js', {"postCuid":"clcjufcmt208681oltsvk1w75m","siteCuid":"cl2lip1ak366551kqo54n9tm9a","buttonText":"Leave a comment","commentsTitleText":"Comments","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"All Post"}}]) requestIdleCallback(function(){ $$ejs([ ['tocobserverRGVqQnVkqx','TocObserver.f62094c2.js', {}], ['imagelightboxqZZpWSyNVn','ImageLightbox.923f28be.js', {}], ['socialshareDkQVCRVVgm','Post/SocialShare.c53595f3.js', {"url":"https://blog.zithara.com/23-best-whatsapp-promotional-message-templates-for-2023-clcjufcmt208681oltsvk1w75m","small":true}], ['leadgenformlVDLyVlpxw','forms/LeadGenForm.7422bf26.js', {"leadsConfig":{"enable":true,"leadType":" MOBILE","ctaText":"Get in Touch","ctaLink":"https://zithara.ai/contact","emailNotifications":true,"postCuid":"site-level","customFields":[],"caption":"Get a Free Personalized Demo","headline":"10X Your Sales Now!!","placeholder":"Your Contact Number","successMessage":"Thank you, we will get back to you soon!","collectEmail":true,"featuredImageUrl":null},"postCuid":"clcjufcmt208681oltsvk1w75m","siteCuid":"cl2lip1ak366551kqo54n9tm9a","colorScheme":"#3153ef","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"All Posts","coAuthor":"Co-Author","page":"Page","contents":"Contents","pinnedPost":"Pinned Post","allRightsReserved":"All Rights Reserved","noCommentsYet":"No comments yet","addNewComment":"Add New Comment","yourCommentHasBeenSubmitted":"Your comment has been submitted","previousPost":"Previous Post","nextPost":"Next Post","searchTopics":"Search Topics","searchPlaceholderNav":"type to search","frequentlyAskedQuestions":"Frequently Asked Questions","featuredPosts":"Featured Posts","featuredPostTag":"Featured Post"}}], ['commentssectionzkwjrpVbLt','Post/CommentsSection.f497b197.js', {"postCuid":"clcjufcmt208681oltsvk1w75m","siteCuid":"cl2lip1ak366551kqo54n9tm9a","buttonText":"Leave a comment","commentsTitleText":"Comments","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"All Post"}}]) }); ``` -------------------------------- ### XMLHttpRequest GET Request Source: https://www.sageorganics.in/ Demonstrates making a GET request using the XMLHttpRequest object. It includes setting the request method, URL, and sending the request. The URL is constructed dynamically with a token. ```javascript var xhr = new XMLHttpRequest(); var path = "/some/path"; var token = "some_token"; var scriptPath = "/script/path"; xhr.open('GET', path + '/munin/a/l' + 's?t=6881c536&token=' + encodeURI(token), true); xhr.send(); ``` -------------------------------- ### Comet Performance Timers Source: https://www.instagram.com/p/CQBMhZ7gEMk/ Configuration for performance timing functions within Comet, such as getting the absolute now time. ```APIDOC performanceAbsoluteNow: (No specific parameters documented, likely returns performance.now()) ``` -------------------------------- ### Server Time Data Source: https://www.instagram.com/p/CZCDvOzBMLl/ Information about the server's current time and the timing of request and response starts. Useful for synchronization and performance analysis. ```APIDOC ServerTimeData: serverTime: 1753335094516 timeOfRequestStart: 1753335094488.8 timeOfResponseStart: 1753335094488.8 ``` -------------------------------- ### Production Deployment and API Keys Source: https://blog.zithara.com/how-to-apply-for-whatsapp-business-api-clchm0m5x795081jpvtv8zh343/ Information regarding the transition from testing to production, including adding the business's actual phone number and obtaining permanent API keys. ```APIDOC Production Deployment: 1. Add Production Phone Number: Replace the test number with the business's actual phone number. - Migration: If the number is in use by the WhatsApp Business app, it must be migrated. - New Number: Alternatively, obtain a new phone number. 2. Obtain API Keys: Upon adding the production number, Meta generates: - Permanent Access Token - Phone Number ID - WhatsApp Business Account ID These are the keys required for integrating WhatsApp into your platform. ``` -------------------------------- ### JSScheduler Global Entry Setup Source: https://www.instagram.com/p/CQBMhZ7gEMk/ Configures the JavaScript scheduler, making it globally accessible. This is crucial for managing asynchronous tasks and ensuring proper execution order in the application. ```javascript {"require":[["JSScheduler","makeSchedulerGlobalEntry",null,["null",false,false]]]} ``` -------------------------------- ### API Configuration: Get Async Params Extra Data Source: https://www.instagram.com/p/CZCDvOzBMLl/ Configuration related to retrieving extra data for asynchronous parameters. This entry defines a structure for holding such extra data. ```APIDOC GetAsyncParamsExtraData: extra_data: {} ``` -------------------------------- ### Elder.js Client-Side Component Loading Source: https://blog.zithara.com/make-money-from-your-phone-buy-your-next-phone-with-zicoins/ This snippet demonstrates the client-side initialization of components using Elder.js. It includes a polyfill for `requestIdleCallback` and logic to load `IntersectionObserver` if not natively supported. The core functionality involves dynamically importing and rendering Svelte components based on an array of component configurations, observing their visibility via `IntersectionObserver`. ```javascript var requestIdleCallback = window.requestIdleCallback || function (cb) { var s = Date.now(); return setTimeout(function () { cb({ didTimeout: false, timeRemaining: function () { return Math.max(0, 50 - (Date.now() - s)); }, }); }, 1); }; if (!('IntersectionObserver' in window)) { var script = document.createElement("script"); script.src = "/\_elderjs/static/intersection-observer.js"; document.getElementsByTagName('head')[0].appendChild(script); }; let IO, $$COMPONENTS={}; const $$ejs = async (arr)=>{ const $ejs = function(_ejs){return _ejs}; const prefix = '/\_elderjs'; for (let i = 0; i < arr.length; i++) { $$COMPONENTS[arr[i][0]] = { elem: document.getElementById(arr[i][0]), component: arr[i][1], props: $ejs(arr[i][2]) || {}, }; if(typeof $$COMPONENTS[arr[i][0]].props === 'string'){ const propsFile = await import(prefix+'/props/'+$$COMPONENTS[arr[i][0]].props); $$COMPONENTS[arr[i][0]].props = $ejs(propsFile.default); }; if (!IO) { IO = new IntersectionObserver((entries, observer) => { var objK = Object.keys(entries); var objKl = objK.length; var objKi = 0; for (; objKi < objKl; objKi++) { const entry = entries[objK[objKi]]; if (entry.isIntersecting) { const selected = $$COMPONENTS[entry.target.id]; observer.unobserve(selected.elem); import(prefix + '/svelte/components/' + selected.component).then((comp)=>{ new comp.default({ target: selected.elem, props: selected.props, hydrate: true }); }); } } }); }; IO.observe($$COMPONENTS[arr[i][0]].elem); } }; $$ejs([['tocobserverVjNqtGvMdf','TocObserver.f62094c2.js', {}],]) requestIdleCallback(function(){ $$ejs([['imagelightboxXqFtpqLqCp','ImageLightbox.923f28be.js', {}],['socialshareZGXyyrlzRk','Post/SocialShare.c53595f3.js', {"url":"https://blog.zithara.com/make-money-from-your-phone-buy-your-next-phone-with-zicoins","small":true}],['leadgenformJcCFDtKLQJ','forms/LeadGenForm.7422bf26.js', {"leadsConfig":{"enable":true,"leadType":" MOBILE","ctaText":"Get in Touch","ctaLink":"https://zithara.ai/contact","emailNotifications":true,"postCuid":"site-level","customFields":[],"caption":"Get a Free Personalized Demo","headline":"10X Your Sales Now!!","placeholder":"Your Contact Number","successMessage":"Thank you, we will get back to you soon!","collectEmail":true,"featuredImageUrl":null},"postCuid":"cl2oap1yz498991kqod9h5pw6u","siteCuid":"cl2lip1ak366551kqo54n9tm9a","colorScheme":"#3153ef","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"All Posts","coAuthor":"Co-Author","page":"Page","contents":"Contents","pinnedPost":"Pinned Post","allRightsReserved":"All Rights Reserved","noCommentsYet":"No comments yet","addNewComment":"Add New Comment","yourCommentHasBeenSubmitted":"Your comment has been submitted","previousPost":"Previous Post","nextPost":"Next Post","searchTopics":"Search Topics","searchPlaceholderNav":"type to search","frequentlyAskedQuestions":"Frequently Asked Questions","featuredPosts":"Featured Posts","featuredPostTag":"Featured Post"}}],['commentssectionRZXDxyqzXq','Post/CommentsSection.f497b197.js', {"postCuid":"cl2oap1yz498991kqod9h5pw6u","siteCuid":"cl2lip1ak366551kqo54n9tm9a","buttonText":"Leave a comment","commentsTitleText":"Comments","localeData":{"id":null}}]]) ``` -------------------------------- ### Component Initialization with Props Source: https://blog.zithara.com/23-important-whatsapp-message-templates-for-d2c-brands-in-2023-clcjynjku248331oltr963pl5z/ Initializes various blog components asynchronously using `$$ejs` and `IntersectionObserver`. This includes a table of contents observer, image lightbox, social share, lead generation form, and comments section, each with specific configurations and props. ```javascript $$ejs([ ['tocobserverwWpjNVXrXJ','TocObserver.f62094c2.js', {}], ['imagelightboxYnyppkKCsF','ImageLightbox.923f28be.js', {}], ['socialsharebTmnQRdwGR','Post/SocialShare.c53595f3.js', {"url":"https://blog.zithara.com/23-important-whatsapp-message-templates-for-d2c-brands-in-2023-clcjynjku248331oltr963pl5z","small":true}], ['leadgenformDMbKXTvcMg','forms/LeadGenForm.7422bf26.js', {"leadsConfig":{"enable":true,"leadType":" MOBILE","ctaText":"Get in Touch","ctaLink":"https://zithara.ai/contact","emailNotifications":true,"postCuid":"site-level","customFields":[],"caption":"Get a Free Personalized Demo","headline":"10X Your Sales Now!!","placeholder":"Your Contact Number","successMessage":"Thank you, we will get back to you soon!","collectEmail":true,"featuredImageUrl":null},"postCuid":"clcjynjku248331oltr963pl5z","siteCuid":"cl2lip1ak366551kqo54n9tm9a","colorScheme":"#3153ef","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"All Posts","coAuthor":"Co-Author","page":"Page","contents":"Contents","pinnedPost":"Pinned Post","allRightsReserved":"All Rights Reserved","noCommentsYet":"No comments yet","addNewComment":"Add New Comment","yourCommentHasBeenSubmitted":"Your comment has been submitted","previousPost":"Previous Post","nextPost":"Next Post","searchTopics":"Search Topics","searchPlaceholderNav":"type to search","frequentlyAskedQuestions":"Frequently Asked Questions","featuredPosts":"Featured Posts","featuredPostTag":"Featured Post"}}], ['commentssectionnyryVRqtCq','Post/CommentsSection.f497b197.js', {"postCuid":"clcjynjku248331oltr963pl5z","siteCuid":"cl2lip1ak366551kqo54n9tm9a","buttonText":"Leave a comment","commentsTitleText":"Comments","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"A"}} ]) ``` -------------------------------- ### Load Feed Arguments Preparation Source: https://www.sageorganics.in/ A JavaScript function that prepares arguments for a `loadFeed` function. It starts with a base argument (`pageOptions`) and conditionally adds other arguments based on their availability in the current scope. ```javascript function getLoadFeedArguments() { let arguments = [ pageOptions ]; let possibleArguments = ['adblock', 'adblock1', 'adblock2', 'tcblock', 'searchboxBlock', 'rtblock', 'rsblock', 'searchblock']; for (let i = 0; i < possibleArguments.length; i++) { if (typeof this[possibleArguments[i]] !== 'undefined') { arguments.push(this[possibleArguments[i]]); } } return arguments; } // Example usage: // loadFeed(...getLoadFeedArguments()); ``` -------------------------------- ### Module Initialization and Dependencies Source: https://www.instagram.com/p/CQBMhZ7gEMk/ Defines the required modules and their initialization parameters, including component definitions and their associated runtime configurations. This section specifies how core functionalities are loaded and set up. ```APIDOC require( [ "ScheduledServerJSWithCSS", "handle", null, [ { "__bbox": { "define": [ ["cr:710", [], {"__rc": [null, null]}, -1], ["cr:20267", ["useEmptyFunction"], {"__rc": ["useEmptyFunction", null]}, -1], ["cr:20391", ["BaseContextualLayer.react"], {"__rc": ["BaseContextualLayer.react", null]}, -1], ["cr:9824", [], {"__rc": [null, null]}, -1], ["cr:964538", [], {"__rc": [null, null]}, -1], ["cr:6554", ["useCDSEntryPointDialog"], {"__rc": ["useCDSEntryPointDialog", null]}, -1], ["cr:7675", ["CometIXTInstagramCDSXfacUniversalTriggerEntryPoint.entrypoint"], {"__rc": ["CometIXTInstagramCDSXfacUniversalTriggerEntryPoint.entrypoint", null]}, -1], ["DspCDSWebLegacyThemeUsage", [], {"light": {"accent": "#0A1317", "alert-banner-corner-radius": "16px", "always-black": "#000000", "always-white": "#FFFFFF", "an" } }] ] } ] ] ) ``` -------------------------------- ### Initial Tracking Call Source: https://www.sageorganics.in/ Initiates a tracking request for browser JavaScript, passing domain and unique tracking ID parameters. This is likely an initial setup or health check for the tracking mechanism. ```javascript ajaxQuery(scriptPath + "/munin/a/tr/browserjs?domain=" + encodeURIComponent(domain) + "&toggle=browserjs&uid=" + encodeURIComponent(uniqueTrackingID)); ``` -------------------------------- ### Zithara Platform Features for WhatsApp Retargeting Source: https://blog.zithara.com/how-to-boost-sales-with-whatsapp-retargeting-campaigns-clclshwvu147171qryudycb65i/ Details the capabilities of the Zithara platform for managing WhatsApp retargeting campaigns, including setup, customer engagement, and performance tracking. ```APIDOC ZitharaWhatsAppRetargeting: description: "Platform for managing WhatsApp retargeting campaigns." features: - "Easy setup and management of WhatsApp retargeting campaigns." - "Customer segmentation and targeted messaging." - "Support for automated messaging and quick replies." - "Analytics and reporting for campaign performance tracking." - "Dedicated help and support from the Zithara team." usage_context: - "Suitable for e-commerce, B2B, and local businesses." - "Requires WhatsApp Business API for campaign execution." related_concepts: - "WhatsApp Business API" - "Customer Engagement" - "Marketing Automation" ``` -------------------------------- ### QPL Timings Server JS Initialization Source: https://www.instagram.com/p/CQBMhZ7gEMk/ Initializes QPL (Query Performance Logging) timings on the server-side, capturing specific events like 'splash_screen_show' or 'tierOne'. This helps in performance analysis and debugging. ```javascript {"require":[["qplTimingsServerJS",null,null,["7530516889245807257","splash_screen_show"]]]} ``` ```javascript {"require":[["qplTimingsServerJS",null,null,["7530516889245807257","tierOne"]]]} ``` -------------------------------- ### Comet Platform Client Initialization Source: https://www.instagram.com/p/CZCDvOzBMLl/ Initializes the Comet Platform Client with specific configuration and roots. This includes setting up routing, error handling, and marking components for immediate loading. ```javascript CometPlatformRootClient.initialize( "__inst_af5d41d9_0_0_OD", "RequireDeferredReference", [ { "ConfigOrBuilder": { "__m": "__inst_af5d41d9_0_0_OD" }, "backgroundRouteInfo": { "route": null, "timeSpentMetaData": null }, "additional_roots": [], "client_id": "7530516889036593643", "rootElementID": "mount_0_0_S0", "expectedPreloaders": null, "initialRouteInfo": { "route": { "actorID": "0", "rootView": { "allResources": [ { "__dr": "PolarisErrorRoot.entrypoint" }, { "__dr": "PolarisErrorRoot.react" } ], "resource": { "__dr": "PolarisErrorRoot.react" }, "props": { "page_logging": { "name": "httpErrorPage", "params": {} }, "page_type": "MEDIA", "show_lox_redesigned_404_page": false }, "entryPoint": { "__dr": "PolarisErrorRoot.entrypoint" } }, "tracePolicy": "polaris.httpErrorPage", "meta": { "title": null, "accessory": null, "favicon": null }, "prefetchable": true, "canonicalRouteName": "comet.igweb.PolarisErrorRoute", "hostableView": { "allResources": [ { "__dr": "PolarisErrorRoot.entrypoint" }, { "__dr": "PolarisErrorRoot.react" } ], "resource": { "__dr": "PolarisErrorRoot.react" }, "props": { "page_logging": { "name": "httpErrorPage", "params": {} }, "page_type": "MEDIA", "show_lox_redesigned_404_page": false }, "entryPoint": { "__dr": "PolarisErrorRoot.entrypoint" } }, "polarisRouteConfig": { "pageID": "httpErrorPage" }, "url": "\/p\/CZCDvOzBMLl\/", "params": {}, "routePath": null }, "timeSpentMetaData": null }, "qplEvents": { "initial_load": { "r": 1, "i": 553648129 }, "navigation": { "r": 1, "i": 553648130 } }, "ssrEnabled": false } ], [ "Bootloader", "markComponentsAsImmediate", [], [ [ "CometErrorRoot.react", "CometKeyCommand" ] ] ] ); ``` -------------------------------- ### AJAX Request Handling and Fallback Source: https://www.sageorganics.in/ Manages asynchronous HTTP requests using XMLHttpRequest, with a fallback mechanism for image-based requests if XMLHttpRequest fails. Includes functions for getting XMLHttpObjects and making queries. ```javascript function getXMLhttp() { let xmlHttp = null; try { xmlHttp = new XMLHttpRequest(); } catch (e) { try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (ex) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (exc) {} } } return xmlHttp; } function ajaxQuery(url) { if (adtest == 'on') return false; xmlHttp = getXMLhttp(); if (!xmlHttp) return ajaxBackfill(url); xmlHttp.open("GET", url, false); return xmlHttp.send(null); } function ajaxBackfill(url) { if (adtest == 'on') return false; if (url.indexOf("&toggle=browserjs") > -1) return false; try { let img = document.createElement('img'); img.style.visibility = 'hidden'; img.style.width = '1px'; img.style.height = '1px'; img.src = url + "&\_t=" + new Date().getTime(); document.body.appendChild(img); } catch (e) {} } ``` -------------------------------- ### Client-Side Component Loading and Initialization (JavaScript) Source: https://blog.zithara.com/whatsapp-business-api-the-future-of-conversational-e-commerce-clck7wnbh227701kp4dh317m7m/ This script initializes client-side components for a web page, likely within an Elder.js framework. It dynamically imports Svelte components based on intersection observer events and passes props for features like social sharing and lead generation forms. Dependencies include browser APIs and potentially Elder.js internal structures. ```javascript var requestIdleCallback = window.requestIdleCallback || function (cb) { var s = Date.now(); return setTimeout(function () { cb({ didTimeout: false, timeRemaining: function () { return Math.max(0, 50 - (Date.now() - s)); }, }); }, 1); }; if (!('IntersectionObserver' in window)) { var script = document.createElement("script"); script.src = "/\_elderjs/static/intersection-observer.js"; document.getElementsByTagName('head')[0].appendChild(script); }; let IO, $$COMPONENTS={}; const $$ejs = async (arr)=>{ const $ejs = function(_ejs){return _ejs}; const prefix = '/\_elderjs'; for (let i = 0; i < arr.length; i++) { $$COMPONENTS[arr[i][0]] = { elem: document.getElementById(arr[i][0]), component: arr[i][1], props: $ejs(arr[i][2]) || {}, }; if(typeof $$COMPONENTS[arr[i][0]].props === 'string'){ const propsFile = await import(prefix+'/props/'+$$COMPONENTS[arr[i][0]].props); $$COMPONENTS[arr[i][0]].props = $ejs(propsFile.default); }; if (!IO) { IO = new IntersectionObserver((entries, observer) => { var objK = Object.keys(entries); var objKl = objK.length; var objKi = 0; for (; objKi < objKl; objKi++) { const entry = entries[objK[objKi]]; if (entry.isIntersecting) { const selected = $$COMPONENTS[entry.target.id]; observer.unobserve(selected.elem); import(prefix + '/svelte/components/' + selected.component).then((comp)=>{ new comp.default({ target: selected.elem, props: selected.props, hydrate: true }); }); } } }); }; IO.observe($$COMPONENTS[arr[i][0]].elem); } }; $$ejs([['tocobserverVlbkFfQqCy','TocObserver.f62094c2.js', {}],]); requestIdleCallback(function(){ $$ejs([['imagelightboxmXqvjjrgCn','ImageLightbox.923f28be.js', {}],['socialshareCJnTgySwrM','Post/SocialShare.c53595f3.js', {"url":"https://blog.zithara.com/whatsapp-business-api-the-future-of-conversational-e-commerce-clck7wnbh227701kp4dh317m7m","small":true}],['leadgenformbcSTSSvVVV','forms/LeadGenForm.7422bf26.js', {"leadsConfig":{"enable":true,"leadType":" MOBILE","ctaText":"Get in Touch","ctaLink":"https://zithara.ai/contact","emailNotifications":true,"postCuid":"site-level","customFields":[],"caption":"Get a Free Personalized Demo","headline":"10X Your Sales Now!!","placeholder":"Your Contact Number","successMessage":"Thank you, we will get back to you soon!","collectEmail":true,"featuredImageUrl":null},"postCuid":"clck7wnbh227701kp4dh317m7m","siteCuid":"cl2lip1ak366551kqo54n9tm9a","colorScheme":"#3153ef","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"All Posts","coAuthor":"Co-Author","page":"Page","contents":"Contents","pinnedPost":"Pinned Post","allRightsReserved":"All Rights Reserved","noCommentsYet":"No comments yet","addNewComment":"Add New Comment","yourCommentHasBeenSubmitted":"Your comment has been submitted","previousPost":"Previous Post","nextPost":"Next Post","searchTopics":"Search Topics","searchPlaceholderNav":"type to search","frequentlyAskedQuestions":"Frequently Asked Questions","featuredPosts":"Featured Posts","featuredPostTag":"Featured Post"}}],['commentssectiontYXGrqXTXz','Post/CommentsSection.f497b197.js', {"postCuid":"clck7wnbh227701kp4dh317m7m","siteCuid":"cl2lip1ak366551kqo54n9tm9a","buttonText":"Leave a comment","commentsTitleText":"Comments","localeData":{"id":"cmcdmltwq004ffci7kvxk8dby","siteId":1033,"createdAt":"2025-06-26T16:57:08.515Z","updatedAt":"2025-06-26T16:57:08.515Z","viewOlderPosts":"View Older Posts","newerPosts":"Previous Page","olderPosts":"Next Page","minRead":"min read","visit":"Visit Site","leaveAComment":"Leave a comment","youMayAlsoWantToRead":"You may also want to read","author":"Author","searchPlaceholder":"type to search posts, authors, tags","pickATopic":"Pick A Topic","backToArticle":"back to article","comments":"Comments","yourName":"Name","yourEmail":"Email","writeSomethingMeaningful":"Write something meaningful","submit":"Submit","cookieNotice":"This website uses cookies.","cookieAcceptBtnText":"Accept","cookieDeclineBtnText":"Decline","cookieLearnMoreText":"Learn more","pageNotFound":"Page Not Found","visitHomePage":"Visit Home Page","searching":"searching","resultsFound":"results found","allPosts":"Al"}}]])}); ```