WEB-DEVELOPMENT-APPLICATIONS practice question 18 of 25

Which HTML elements support the `` tag to invoke JavaScript code? Choose 2 answers:

Full set: 131 questions
Answer options
A: body Correct answer
B: head Correct answer
C: form
D: meta
E: title
Correct Answer:
A. body; B. head
Explanation

The HTML <script> tag is used to embed or reference executable JavaScript code. According to the HTML specification, it is valid to place <script> elements inside either the or the of the document. Placing scripts in the can block page rendering while they are fetched and executed. A common performance practice is to place them just before the closing tag to allow the main HTML content to be parsed and displayed first.

Why Incorrect

C. form: The <script> tag is not a permitted content model for the element. It should contain flow content, but not scripting elements directly.
D. meta: The tag is a void (or empty) element and cannot contain any content, including a <script> tag.
E. title: The element can only contain text that describes the document's title, not other HTML elements like <script>.</p></div> </div> <div class="ce-explanation-section"> <div class="ce-label">References</div> <div class="ce-explanation-text"><p>1. Mozilla Developer Network (MDN). (2023). <script>: The Script element. In HTML: HyperText Markup Language. Section: "Usage notes". Retrieved from <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script" target="_blank" rel="noopener nofollow">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script</a></p><p>2. WHATWG. (2024). HTML Living Standard. Section 4.12.1 "The script element". Retrieved from <a href="https://html.spec.whatwg.org/multipage/scripting.html#the-script-element" target="_blank" rel="noopener nofollow">https://html.spec.whatwg.org/multipage/scripting.html#the-script-element</a></p><p>3. W3C. (2021). HTML 5.2 Recommendation. Section 4.3.1 "The script element". Retrieved from <a href="https://www.w3.org/TR/html52/semantics-scripting.html#the-script-element" target="_blank" rel="noopener nofollow">https://www.w3.org/TR/html52/semantics-scripting.html#the-script-element</a></p></div> </div> </div> </article> </div></div></div> </div> </div> <div class="cmp2__side"> <div class="cmp2__sticky"> <aside id="cmc-full-set" class="cmc-buy cmc-buy--side" aria-labelledby="cmc-buy-title"> <p class="cmc-buy__eyebrow">Full practice set</p> <h2 id="cmc-buy-title" class="cmc-buy__title">Complete WEB-DEVELOPMENT-APPLICATIONS question bank</h2> <ul class="cmc-buy__list"> <li><strong>131</strong> questions with answers</li> <li>Answers with explanations</li> <li>PDF and practice test engine</li> <li>Instant download after checkout</li> </ul> <a class="cmc-btn cmc-btn--cta cmc-btn--block" href="https://certmage.com/exam/web-development-applications-exam/">Get full access</a> <a class="cmc-buy__link" href="https://certmage.com/exam/web-development-applications-exam/#cm-product-description">View exam set details</a> </aside> <nav class="cmc-subnav cmp2__links" aria-label="Keep practicing"> <a href="https://certmage.com/practice-tests/web-development-applications/">Free WEB-DEVELOPMENT-APPLICATIONS practice test</a> <a href="https://certmage.com/practice-tests/web-development-applications/question/which-event-occurs-when-a-user-closes-a-browser-yj4z0a/">← Previous question</a> <a href="https://certmage.com/practice-tests/web-development-applications/question/which-html5-attribute-specifies-where-to-send-the-form-ggfald/">Next question →</a> </nav> </div> </div> <div class="cmp2__rest"> <nav class="cmc-qnav" aria-label="More questions"> <a class="cmc-qnav__prev" href="https://certmage.com/practice-tests/web-development-applications/question/which-event-occurs-when-a-user-closes-a-browser-yj4z0a/"><span>Previous question</span><strong>Which event occurs when a user closes a browser?</strong></a> <a class="cmc-qnav__next" href="https://certmage.com/practice-tests/web-development-applications/question/which-html5-attribute-specifies-where-to-send-the-form-ggfald/"><span>Next question</span><strong>Which HTML5 attribute specifies where to send the form data for proce…</strong></a> </nav> <section class="cmc-section cmc-qband" aria-labelledby="cmc-qband-title"> <div> <p class="cmc-eyebrow">Keep practicing</p> <h2 id="cmc-qband-title">Take the free WEB-DEVELOPMENT-APPLICATIONS practice test</h2> <p class="cmc-section__intro">Ten exam-style questions with answers and explanations, plus the exam facts and study guides.</p> </div> <a class="cmc-btn cmc-btn--primary" href="https://certmage.com/practice-tests/web-development-applications/">Start the free practice test</a> </section> <section class="cmc-section cmc-qmore" aria-labelledby="cmc-qmore-title"> <header class="cmc-section__head"> <div> <p class="cmc-eyebrow">More questions</p> <h2 id="cmc-qmore-title">Other WEB-DEVELOPMENT-APPLICATIONS practice questions</h2> </div> </header> <ul class="cmc-qmore__list"> <li><a href="https://certmage.com/practice-tests/web-development-applications/question/given-the-following-javascript-code-javascript-var-n1-895exl/"><span>Question 1</span>Given the following JavaScript code: ```javascript var n1 = 10; var n2 = "20.39"; ``` Whi…</a></li> <li><a href="https://certmage.com/practice-tests/web-development-applications/question/which-attribute-displays-help-text-in-an-input-field-aw3r9/"><span>Question 2</span>Which attribute displays help text in an input field without specifying an actual value f…</a></li> <li><a href="https://certmage.com/practice-tests/web-development-applications/question/which-element-attaches-an-external-css-document-to-a-z8cbzd/"><span>Question 4</span>Which element attaches an external CSS document to a web page?</a></li> <li><a href="https://certmage.com/practice-tests/web-development-applications/question/which-html-tag-should-a-developer-use-to-create-9vkj2d/"><span>Question 5</span>Which HTML tag should a developer use to create a drop-down list?</a></li> <li><a href="https://certmage.com/practice-tests/web-development-applications/question/which-method-allows-the-end-user-to-enter-text-1o5mj5/"><span>Question 6</span>Which method allows the end user to enter text as an answer to a question as the page loa…</a></li> <li><a href="https://certmage.com/practice-tests/web-development-applications/question/which-layout-design-is-easiest-to-manage-on-a-1jwfcp/"><span>Question 8</span>Which layout design is easiest to manage on a variety of devices?</a></li> </ul> </section> </div> </article> </div> </main> </div><!-- .ast-container --> </div><!-- #content --> <footer id="colophon" class="cm-site-footer" itemtype="https://schema.org/WPFooter" itemscope="itemscope" itemid="#colophon"> <section class="cm-footer-updated" aria-labelledby="cm-footer-updated-title"> <div class="cm-footer-updated-inner"> <h2 id="cm-footer-updated-title" class="cm-footer-heading">Recently Updated Tests</h2> <div class="cm-updated-grid"> <ul class="cm-updated-list"> <li><a href="https://certmage.com/exam/ccna-200-301/" target="_blank" rel="noopener">Cisco 200-301</a></li> <li><a href="https://certmage.com/exam/saa-c03/" target="_blank" rel="noopener">SAA-C03</a></li> <li><a href="https://certmage.com/exam/sc-401/" target="_blank" rel="noopener">Microsoft SC-401</a></li> <li><a href="https://certmage.com/exam/dva-c02/" target="_blank" rel="noopener">DVA-C02</a></li> <li><a href="https://certmage.com/exam/plat-admn-201/" target="_blank" rel="noopener">Plat-Admn-201</a></li> <li><a href="https://certmage.com/exam/scs-c03/" target="_blank" rel="noopener">SCS-C03</a></li> </ul> <ul class="cm-updated-list"> <li><a href="https://certmage.com/exam/az-900/" target="_blank" rel="noopener">Microsoft AZ-900</a></li> <li><a href="https://certmage.com/exam/az-400/" target="_blank" rel="noopener">Microsoft AZ-400</a></li> <li><a href="https://certmage.com/exam/az-104/" target="_blank" rel="noopener">Microsoft AZ-104</a></li> <li><a href="https://certmage.com/exam/az-204/" target="_blank" rel="noopener">Microsoft AZ-204</a></li> <li><a href="https://certmage.com/exam/sy0-701/" target="_blank" rel="noopener">CompTIA SY0-701</a></li> <li><a href="https://certmage.com/exam/itil-v4-foundation/" target="_blank" rel="noopener">ITIL-V4 Foundation</a></li> </ul> <ul class="cm-updated-list"> <li><a href="https://certmage.com/exam/cissp/" target="_blank" rel="noopener">ISC2 CISSP</a></li> <li><a href="https://certmage.com/exam/microsoft-ab-730/" target="_blank" rel="noopener">Microsoft AB-730</a></li> <li><a href="https://certmage.com/exam/splk-1002/" target="_blank" rel="noopener">SPLK-1002</a></li> <li><a href="https://certmage.com/exam/ab-731/" target="_blank" rel="noopener">Microsoft AB-731</a></li> <li><a href="https://certmage.com/exam/agentforce-specialist/" target="_blank" rel="noopener">Agentforce-Specialist</a></li> <li><a href="https://certmage.com/exam/aif-c01/" target="_blank" rel="noopener">AIF-C01</a></li> </ul> <ul class="cm-updated-list"> <li><a href="https://certmage.com/exam/220-1201/" target="_blank" rel="noopener">A+ 220-1201</a></li> <li><a href="https://certmage.com/exam/220-1202/" target="_blank" rel="noopener">A+ 220-1202</a></li> <li><a href="https://certmage.com/exam/1z0-1055-26/" target="_blank" rel="noopener">1Z0-1055-26</a></li> <li><a href="https://certmage.com/exam/gcp-cloud-architect/" target="_blank" rel="noopener">GCP Cloud Architect</a></li> <li><a href="https://certmage.com/exam/associate-android-developer/" target="_blank" rel="noopener">Associate Android Developer</a></li> <li><a href="https://certmage.com/exam/associate-cloud-engineer/" target="_blank" rel="noopener">Associate Cloud Engineer</a></li> </ul> </div> </div> </section> <section class="cm-footer-main"> <div class="cm-footer-main-inner"> <nav aria-label="Policies and account"> <ul class="cm-footer-links"> <li><a href="https://certmage.com/my-account/">Login/Register</a></li> <li><a href="https://certmage.com/privacy-policy/">Privacy Policy</a></li> <li><a href="https://certmage.com/refund-policy/">Refund Policy</a></li> <li><a href="https://certmage.com/terms-and-conditions/">Terms and Conditions</a></li> <li><a href="https://certmage.com/contact-us/">Contact</a></li> </ul> </nav> <div class="cm-footer-navigation"> <nav aria-label="Certification vendors and resources"> <ul class="cm-footer-vendors"> <li><a href="https://certmage.com/exams/microsoft/">Microsoft</a></li> <li><a href="https://certmage.com/exams/amazon/">AWS</a></li> <li><a href="https://certmage.com/exams/comptia/">CompTIA</a></li> <li><a href="https://certmage.com/exams/cisco/">CISCO</a></li> <li><a href="https://certmage.com/exams/google/">Google</a></li> <li><a href="https://certmage.com/exams/isc2/">ISC2</a></li> <li><a href="https://certmage.com/exams/salesforce-exams/">Salesforce</a></li> <li><a href="https://certmage.com/exams/itil/">ITIL</a></li> <li><a href="https://certmage.com/exams/sap/">SAP</a></li> <li><a href="https://certmage.com/exams/oracle/">ORACLE</a></li> <li><a href="https://certmage.com/exams/vmware/">Vmware</a></li> <li><a href="https://certmage.com/download/">All Exams</a></li> <li><a href="https://certmage.com/practice-tests/">Practice Tests</a></li> <li><a href="https://certmage.com/blog/">Blog</a></li> </ul> </nav> <p class="cm-footer-disclaimer">Cert Mage is the only provider of IT authentic exam guides and quizzes. We do not have any other website besides this one. Please be aware.</p> </div> </div> </section> <div class="cm-footer-copyright"> <p>Copyright © 2026 Cert Mage - Authentic and Up to date Exam Questions 2026 Verified and Updated by IT Experts with Real Exam Questions</p> </div> </footer> </div><!-- #page --> <div id="ast-scroll-top" tabindex="0" class="ast-scroll-top-icon ast-scroll-to-top-right" data-on-devices="both"> <span class="ast-icon icon-arrow"><svg class="ast-arrow-svg" xmlns="http://www.w3.org/2000/svg" width="26px" height="16.043px" viewBox="57 35.171 26 16.043" aria-hidden="true"><path d="M57.5,38.193l12.5,12.5l12.5-12.5l-2.5-2.5l-10,10l-10-10L57.5,38.193z" /></svg></span> <span class="screen-reader-text">Scroll to Top</span> </div> <script type="speculationrules"> {"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/certmage-v2/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]} </script> <script> (function () { var c = document.body.className; c = c.replace(/woocommerce-no-js/, 'woocommerce-js'); document.body.className = c; })(); </script> <script id="aws-script-js-extra"> var aws_vars = {"sale":"Sale!","sku":"SKU: ","showmore":"View all results","noresults":"Nothing found"}; //# sourceURL=aws-script-js-extra </script> <script data-wp-strategy="defer" defer id="aws-script-js" src="https://certmage.com/wp-content/plugins/advanced-woo-search/assets/js/common.min.js?ver=3.73"></script> <script id="chatway-script-js-extra"> var wpChatwaySettings = {"widgetId":"KGqJikfPdX8P","emailId":"","userId":"","token":"","userName":"","themeName":"CertMage"}; //# sourceURL=chatway-script-js-extra </script> <script id="chatway-script-js" src="https://cdn.chatway.app/widget.js?include%5B%5D=faqs&&ver=7b8fe1042b3defa489fc#038;id=KGqJikfPdX8P"></script> <script id="chatway-frontend-js-extra"> var chatwaySettings = {"ajaxURL":"https://certmage.com/wp-admin/admin-ajax.php","widgetId":"KGqJikfPdX8P","nonce":"7a501cf9e1"}; //# sourceURL=chatway-frontend-js-extra </script> <script data-wp-strategy="defer" defer id="chatway-frontend-js" src="https://certmage.com/wp-content/plugins/chatway-live-chat/assets/js/frontend.js?ver=302744dc226a23cbd4ee"></script> <script data-wp-strategy="defer" defer id="gtm4wp-ecommerce-generic-js" src="https://certmage.com/wp-content/plugins/duracelltomi-google-tag-manager/build/gtm4wp-ecommerce-generic.js?ver=2.0.6"></script> <script id="gtm4wp-woocommerce-js-before"> window.gtm4wp_store_api_cart_url = "https:\/\/certmage.com\/wp-json\/wc\/store\/v1\/cart"; //# sourceURL=gtm4wp-woocommerce-js-before </script> <script id="gtm4wp-woocommerce-js" src="https://certmage.com/wp-content/plugins/duracelltomi-google-tag-manager/build/gtm4wp-woocommerce.js?ver=2.0.6"></script> <script id="rocket-browser-checker-js-after"> "use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}(); //# sourceURL=rocket-browser-checker-js-after </script> <script id="rocket-preload-links-js-extra"> var RocketPreloadLinksConfig = {"excludeUris":"/checkout/|/wp-admin/|/checkout-2/|/(?:.+/)?feed(?:/(?:.+/?)?)?$|/(?:.+/)?embed/|/checkout/??(.*)|/cart/?|/my-account/??(.*)|/(index.php/)?(.*)wp-json(/.*|$)|/refer/|/go/|/recommend/|/recommends/","usesTrailingSlash":"1","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|pdf|doc|docx|xls|xlsx|php|html|htm","siteUrl":"https://certmage.com","onHoverDelay":"100","rateThrottle":"3"}; //# sourceURL=rocket-preload-links-js-extra </script> <script id="rocket-preload-links-js-after"> (function() { "use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run(); }()); //# sourceURL=rocket-preload-links-js-after </script> <script id="rocket_lazyload_css-js-extra"> var rocket_lazyload_css_data = {"threshold":"300"}; //# sourceURL=rocket_lazyload_css-js-extra </script> <script id="rocket_lazyload_css-js-after"> !function o(n,a,c){function l(t,e){if(!a[t]){if(!n[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(u)return u(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=a[t]={exports:{}},n[t][0].call(r.exports,function(e){return l(n[t][1][e]||e)},r,r.exports,o,n,a,c)}return a[t].exports}for(var u="function"==typeof require&&require,e=0;e<c.length;e++)l(c[e]);return l}({1:[function(e,t,r){{let r="undefined"==typeof rocket_pairs?[]:rocket_pairs,o=(("undefined"==typeof rocket_excluded_pairs?[]:rocket_excluded_pairs).map(t=>{var e=t.selector;document.querySelectorAll(e).forEach(e=>{e.setAttribute("data-rocket-lazy-bg-"+t.hash,"excluded")})}),document.querySelector("#wpr-lazyload-bg-container"));var a=rocket_lazyload_css_data.threshold||300;let n=new IntersectionObserver(e=>{e.forEach(t=>{t.isIntersecting&&r.filter(e=>t.target.matches(e.selector)).map(t=>{var e;t&&((e=document.createElement("style")).textContent=t.style,o.insertAdjacentElement("afterend",e),t.elements.forEach(e=>{n.unobserve(e),e.setAttribute("data-rocket-lazy-bg-"+t.hash,"loaded")}))})})},{rootMargin:a+"px"});function c(){0<(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).length&&r.forEach(t=>{try{document.querySelectorAll(t.selector).forEach(e=>{"loaded"!==e.getAttribute("data-rocket-lazy-bg-"+t.hash)&&"excluded"!==e.getAttribute("data-rocket-lazy-bg-"+t.hash)&&(n.observe(e),(t.elements||=[]).push(e))})}catch(e){console.error(e)}})}c(),(()=>{let r=window.MutationObserver;return function(e,t){if(e&&1===e.nodeType)return(t=new r(t)).observe(e,{attributes:!0,childList:!0,subtree:!0}),t}})()(document.querySelector("body"),c)}},{}]},{},[1]); //# sourceURL=rocket_lazyload_css-js-after </script> <script id="cm-quiz-js-js" src="https://certmage.com/wp-content/plugins/certmage-quiz/assets/cm-quiz.js?ver=1791170279"></script> <script id="sourcebuster-js-js" src="https://certmage.com/wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.min.js?ver=11.2.1"></script> <script id="wc-order-attribution-js-extra"> var wc_order_attribution = {"params":{"lifetime":1.0000000000000000818030539140313095458623138256371021270751953125e-5,"session":30,"base64":false,"ajaxurl":"https://certmage.com/wp-admin/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":true},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","utm_source_platform":"current.plt","utm_creative_format":"current.fmt","utm_marketing_tactic":"current.tct","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}}; //# sourceURL=wc-order-attribution-js-extra </script> <script id="wc-order-attribution-js" src="https://certmage.com/wp-content/plugins/woocommerce/assets/js/frontend/order-attribution.min.js?ver=11.2.1"></script> <script id="certmage-site-shell-js" src="https://certmage.com/wp-content/themes/certmage-v2/assets/js/site-shell.js?ver=1793364499"></script> <script id="wp-emoji-settings" type="application/json"> {"baseUrl":"https://s.w.org/images/core/emoji/17.0.2/72x72/","ext":".png","svgUrl":"https://s.w.org/images/core/emoji/17.0.2/svg/","svgExt":".svg","source":{"concatemoji":"https://certmage.com/wp-includes/js/wp-emoji-release.min.js?ver=7.1.5"}} </script> <script type="module"> /*! This file is auto-generated */ var e="script#wp-emoji-settings",t=document.querySelector(e);if(!(t instanceof HTMLScriptElement))throw new Error("Element missing: "+e);const r=JSON.parse(t.text),s=(window._wpemojiSettings=r,"wpEmojiSettingsSupports"),o=["flag","emoji"];function i(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(s,JSON.stringify(t))}catch(e){}}function c(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0);const r=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data);return t.every((e,t)=>e===r[t])}function p(e,t){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var n=e.getImageData(16,16,1,1);for(let e=0;e<n.data.length;e++)if(0!==n.data[e])return!1;return!0}function u(e,t,n,r){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\udde8\ud83c\uddf6","\ud83c\udde8\u200b\ud83c\uddf6")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!r(e,"\ud83e\u1fac8")}return!1}function f(e,t,n,r){let a;const s=(a="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):document.createElement("canvas")).getContext("2d",{willReadFrequently:!0}),o=(s.textBaseline="top",s.font="600 32px Arial",{});return e.forEach(e=>{o[e]=t(s,e,n,r)}),o}function a(e){var t=document.createElement("script");t.src=e,t.defer=!0,document.head.appendChild(t)}r.supports={everything:!0,everythingExceptFlag:!0},new Promise(t=>{let n=function(){try{var e=JSON.parse(sessionStorage.getItem(s));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(o),u.toString(),c.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"});const a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=e=>{i(n=e.data),a.terminate(),t(n)})}catch(e){}i(n=f(o,u,c,p))}t(n)}).then(e=>{for(const n in e)r.supports[n]=e[n],r.supports.everything=r.supports.everything&&r.supports[n],"flag"!==n&&(r.supports.everythingExceptFlag=r.supports.everythingExceptFlag&&r.supports[n]);var t;r.supports.everythingExceptFlag=r.supports.everythingExceptFlag&&!r.supports.flag,r.supports.everything||((t=r.source||{}).concatemoji?a(t.concatemoji):t.wpemoji&&t.twemoji&&(a(t.twemoji),a(t.wpemoji)))}); //# sourceURL=https://certmage.com/wp-includes/js/wp-emoji-loader.min.js </script> <script>window.lazyLoadOptions=[{elements_selector:"img[data-lazy-src],.rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,callback_loaded:function(element){if(element.tagName==="IFRAME"&&element.dataset.rocketLazyload=="fitvidscompatible"){if(element.classList.contains("lazyloaded")){if(typeof window.jQuery!="undefined"){if(jQuery.fn.fitVids){jQuery(element).parent().fitVids()}}}}}},{elements_selector:".rocket-lazyload",data_src:"lazy-src",data_srcset:"lazy-srcset",data_sizes:"lazy-sizes",class_loading:"lazyloading",class_loaded:"lazyloaded",threshold:300,}];window.addEventListener('LazyLoad::Initialized',function(e){var lazyLoadInstance=e.detail.instance;if(window.MutationObserver){var observer=new MutationObserver(function(mutations){var image_count=0;var iframe_count=0;var rocketlazy_count=0;mutations.forEach(function(mutation){for(var i=0;i<mutation.addedNodes.length;i++){if(typeof mutation.addedNodes[i].getElementsByTagName!=='function'){continue} if(typeof mutation.addedNodes[i].getElementsByClassName!=='function'){continue} images=mutation.addedNodes[i].getElementsByTagName('img');is_image=mutation.addedNodes[i].tagName=="IMG";iframes=mutation.addedNodes[i].getElementsByTagName('iframe');is_iframe=mutation.addedNodes[i].tagName=="IFRAME";rocket_lazy=mutation.addedNodes[i].getElementsByClassName('rocket-lazyload');image_count+=images.length;iframe_count+=iframes.length;rocketlazy_count+=rocket_lazy.length;if(is_image){image_count+=1} if(is_iframe){iframe_count+=1}}});if(image_count>0||iframe_count>0||rocketlazy_count>0){lazyLoadInstance.update()}});var b=document.getElementsByTagName("body")[0];var config={childList:!0,subtree:!0};observer.observe(b,config)}},!1)</script><script data-no-minify="1" async src="https://certmage.com/wp-content/plugins/wp-rocket/assets/js/lazyload/17.8.3/lazyload.min.js"></script></body> </html> <!-- This website is like a Rocket, isn't it? Performance optimized by WP Rocket. Learn more: https://wp-rocket.me -->