The Top 20 XHTML Interview Questions for Web Developers in 2023

As a web developer in today’s digital landscape having strong XHTML skills is crucial for building fast, accessible, and standards-compliant websites. XHTML combines the familiarity of HTML with the strict syntax rules of XML making it a powerful tool for developing semantic, SEO-friendly markup.

With XHTML being a commonly tested skill in web developer interviews, it’s important to be well-prepared to showcase your proficiency. This article provides 20 of the most frequently asked XHTML interview questions, along with detailed explanations and sample code to help reinforce your learning.

1. What are the key differences between HTML and XHTML?

XHTML is a stricter, cleaner version of HTML that follows XML syntax rules. The key differences include:

  • Case sensitivity – XHTML tags must be lowercase
  • Closing tags – All elements must have closing tags
  • Quoted attributes – Attribute values must be enclosed in quotes
  • Proper nesting – Tags must be properly nested
  • Self-closing tags – Elements like <img> must use trailing slash
  • Root element – Documents must have single top level element

HTML is more forgiving and allows practices like omitting quotes or closing tags.

2. How can you ensure an XHTML document is well-formed?

To ensure well-formedness in XHTML:

  • All tags must be properly nested and closed
  • Lowercase tag names must be used consistently
  • Attribute values should be quoted
  • Self-closing tags like <br /> should be used for empty elements
  • The document must adhere to its DOCTYPE declaration
  • Avoid using deprecated elements like <font>

Well-formedness is key for consistent rendering across browsers.

3. What is the significance of the DOCTYPE declaration?

The DOCTYPE declaration specifies the HTML/XHTML standard used by the document. It ensures:

  • Browsers render using standards mode for consistency
  • Markup is validated for well-formedness
  • Document adheres to W3C web standards
  • Enables use of newer HTML5/XHTML features

Without it, browsers may use quirks mode leading to unexpected rendering.

4. When is XHTML preferred over HTML?

The stricter syntax of XHTML makes it preferable when:

  • Strong validation is required, like XML web services
  • Compatibility with other XML-based languages is needed
  • Support for XML tools like XSLT/XPath is desired
  • Clean, well-structured markup is critical
  • Forward compatibility with HTML5 is important

However, HTML5 provides similar benefits without XHTML’s syntax rigor.

5. What tools can you use to validate XHTML documents?

Some commonly used XHTML validation tools:

  • W3C Markup Validation Service – Validates documents by direct input, file upload or URI
  • Browser Developers Tools – Highlight errors and warnings directly in the browser
  • HTML Tidy – Identifies and fixes markup errors
  • Online services like XHTML Validator
  • Build tools like Grunt, Gulp, Webpack using plugins for automated testing

6. How are namespaces handled in XHTML?

Namespaces prevent naming conflicts when mixing XHTML with other XML vocabularies. The xmlns attribute declares the default namespace:

xml

<html xmlns="http://www.w3.org/1999/xhtml">

Additional namespaces can be declared to embed other languages like MathML:

xml

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML"><m:math>  <!-- MathML markup --></m:math>

7. How do you handle special characters in XHTML?

Special characters like < or & can be problematic in XHTML, so character entities are used:

  • &lt; for <
  • &gt; for >
  • &amp; for &

Numeric character references can represent Unicode characters:

&#169; for the copyright symbol ©

For heavy special character use, define the encoding as UTF-8 upfront.

8. How are scripts and CSS embedded in XHTML?

The <script> and <style> elements work the same as HTML but with proper closing tags:

xml

<script type="text/javascript">  //<![CDATA[    // JavaScript code  //]]></script><style type="text/css">  /* <![CDATA[ */    /* CSS rules */  /* ]]> */</style>

CDATA sections prevent parsing errors from special characters.

9. Why must XHTML be served as XML rather than HTML?

As XHTML is XML-based, serving it as text/html can cause errors in XML-aware user agents. Using the proper XML MIME type like application/xhtml+xml ensures:

  • Browsers parse it correctly as XML
  • Well-formedness rules are enforced
  • No risk of corruption from misparsing

This respects a core XML principle – robustness through strict well-formedness.

10. How does error handling differ between HTML and XHTML?

XHTML handles errors strictly by stopping parsing altogether when well-formedness rules are violated.

HTML uses error recovery to try and continue parsing erroneous markup. This leads to inconsistencies across browsers and makes debugging harder.

For XHTML, validation should be done before deployment. IDEs with error detection help avoid mistakes.

11. What is element minimization and why is it prohibited in XHTML?

Element minimization refers to omitting certain parts of a tag, like closing tags or attribute values.

This is allowed in HTML but prohibited in XHTML because:

  • XML requires all elements to be properly closed
  • Omitted values create ambiguity in document structure
  • Well-formedness depends on complete markup

This strictness results in reliable parsing across different XML processors.

12. Why is case sensitivity important in XHTML?

XHTML elements and attributes must be lowercase as per XML conventions. Benefits include:

  • Avoids confusion between similar elements like <img> and <IMG>
  • Ensures consistent parsing across XML processors
  • Improves code readability and maintainability
  • Makes debugging simpler compared to arbitrary case
  • Enables interoperability with other XML languages

Non-compliance causes errors since XHTML interprets <IMG> and <img> as different elements.

13. How would you convert an HTML document to XHTML?

To convert to XHTML:

  1. Declare XHTML doctype
  2. Use lowercase for tags/attributes
  3. Quote attribute values
  4. Close all tags properly
  5. Replace empty elements like <br> with <br />
  6. Nest elements correctly
  7. Include xmlns attribute in <html> tag
  8. Validate with W3C Markup Validation Service

This ensures XHTML compliance. Legacy elements like <font> may need cleanup.

14. What challenges exist in migrating sites from HTML to XHTML?

Migrating from HTML to stricter XHTML can pose challenges like:

  • Rewriting sloppy markup with missing tags or quotes
  • Fixing capitalization errors for compliance
  • Ensuring proper nesting of elements
  • Adding slashes to self-closing tags
  • Testing for and resolving functional breaks

Planning the migration by auditing the codebase helps. Legacy HTML can make full migration difficult in some cases.

15. How do you handle browser compatibility issues in XHTML?

To maximize compatibility:

  • Validate markup using W3C tools to avoid non-standard code
  • Use proper XHTML DOCTYPE to trigger standards mode
  • Incorporate CSS resets like Normalize.css for consistency
  • Ensure JavaScript degrades gracefully without support
  • Test extensively across different browsers and platforms
  • Use feature detection and polyfills for advanced functionality

Progressive enhancement ensures critical functionality works everywhere.

16. How can you improve accessibility in XHTML?

Some tips for accessible XHTML:

  • Use semantic elements like <header>, <nav>, <main>
  • Provide textual alternatives via alt attributes
  • Associate labels to form controls
  • Ensure keyboard navigation is possible
  • Use ARIA roles appropriately
  • Follow color contrast standards
  • Size content relatively for text resize

This benefits users with disabilities through enhanced markup structure.

17. What is the proper way to handle empty elements in XHTML?

Empty elements like <br>, <hr>, <img> must use trailing slash syntax in XHTML e.g.:

xml

<br /><hr /> <img src="logo.png" alt="Company logo" />

This self-closing form enables valid XML parsing. Omitting the closing slash will break well-formedness.

18. What is the purpose of XHTML Modularization?

XHTML Modularization allows mixing and matching XHTML modules to build custom markup languages targeted for specific devices or applications.

Benefits include:

xhtml interview questions

6 Answers 6 Sorted by:

Bugs in validation don’t make downloads take longer; in fact, the only thing that keeps it from being valid HTML 4 is some extra whitespace. 01 Transitional is the missing alt attribute).

The things that could increase download times are:

  • They might be bigger than 10×10 and need to be shrunk down.
  • Instead of cache-friendly CSS, presentational attributes are used, which won’t make a difference for this one time.

Since links inside other links have a border by default, border=0 might not be as “unnecessary” as you think (though it is still better to use CSS for this).

There is a space at either end. Thats 2 unnecessary bytes to download 😉

something.gif might not actually be pointing to a static picture on the filesystem.

something.gif might:

  • Might Redirect
  • Produce non 200 response codes
  • Dynamically Created
  • Call a server side script(eg WebBug)

How about:

Reduces the download time by about one round trip time. Since its quite small, 10 by 10, the overhead of base64 is not significant, I think.

The code is very big, which is why it takes longer to load or show.

The is using a relative path, so it might not download at all if you look at it in an email client.

XHTML Interview Questions and Answers

FAQ

What is the main goal of XHTML?

The primary goal of XHTML is to create a stricter way to develop websites consistently and expectantly. XHTML works by allowing you to write standard HTML using the strict guidelines of the XML format.

What is XHTML short answer?

XHTML (Extensible HyperText Markup Language) is a family of XML markup languages that mirror or extend versions of the widely used Hypertext Markup Language (HTML) Flexible framework requiring lenient HTML specific parser. Restrictive subset of XML which needs to be parsed with standard XML parsers.

What is the difference between HTML and XHTML?

HTML (HypertextMarkup Language) and XHTML (ExtensibleHypertext Markup Language) are both markup languages used for creating and displaying web pages. The main difference between them is the syntax and structure; HTML is more lenient in its syntax, while XHTML has a more strict syntax and follows XML rules.

What are HTML interview questions?

We’ve divided these questions into beginner, intermediate and advanced level HTML interview questions. 1. Define HTML. HTML stands for HyperText Markup Language. HTML is a standard text formatting language that creates and displays a variety of pages on the web. 2. What are the components of HTML?

Why is XHTML better than HTML?

All XHTML elements must always be closed. All XHTML elements must be written in lower case. Every XHTML document must have one root element. That is the reason behind its preferences over HTML because; most of the web pages contain bad HTML. 3) What is the difference between XHTML and HTML?

What attributes are used in HTML interview questions?

Style, class, and id are the commonly used attributes. span element: The span element is used as a container for text. It has no required attributes. Style, class, and id are the commonly used attributes. HTML Interview Questions contains list of most frequently asked in interviews questions and answers.

Which XML tags must be nested?

The xmlns attribute in is mandatory and must specify the xml namespace for the document. , , , and <body> are mandatory with their respective closing tags. All XHTML tags must be in lower case. All XHTML tags must be closed. All XHTML tags must be properly nested. The XHTML documents must have one root element.</p> <div class='yarpp yarpp-related yarpp-related-website yarpp-template-list'> <!-- YARPP List --> <h3>Related posts:</h3><ol> <li><a href="https://yourcareersupport.com/referral-clerk-interview-questions/" rel="bookmark" title="The Complete Guide to Nailing Your Referral Clerk Interview">The Complete Guide to Nailing Your Referral Clerk Interview </a></li> <li><a href="https://yourcareersupport.com/secretarial-assistant-interview-questions/" rel="bookmark" title="Preparing for Your Secretarial Assistant Interview: 31 Common Questions and How to Answer Them">Preparing for Your Secretarial Assistant Interview: 31 Common Questions and How to Answer Them </a></li> <li><a href="https://yourcareersupport.com/quarry-manager-interview-questions/" rel="bookmark" title="The Top Quarry Manager Interview Questions to Prepare For">The Top Quarry Manager Interview Questions to Prepare For </a></li> <li><a href="https://yourcareersupport.com/club-manager-interview-questions/" rel="bookmark" title="The Ultimate Guide to Club Manager Interview Questions and Answers">The Ultimate Guide to Club Manager Interview Questions and Answers </a></li> <li><a href="https://yourcareersupport.com/medical-billing-supervisor-interview-questions/" rel="bookmark" title="Ace Your Medical Billing Supervisor Interview: The Top 10 Questions You Should Prepare For">Ace Your Medical Billing Supervisor Interview: The Top 10 Questions You Should Prepare For </a></li> <li><a href="https://yourcareersupport.com/sanitary-engineer-interview-questions/" rel="bookmark" title="Ace Your Sanitary Engineer Job Interview: 10 Essential Questions and Answers">Ace Your Sanitary Engineer Job Interview: 10 Essential Questions and Answers </a></li> <li><a href="https://yourcareersupport.com/conveyancer-interview-questions/" rel="bookmark" title="The Complete Guide to Conveyancer Interview Questions">The Complete Guide to Conveyancer Interview Questions </a></li> <li><a href="https://yourcareersupport.com/well-test-operator-interview-questions/" rel="bookmark" title="Ace Your Well Test Operator Interview: The Top 30 Questions You Need to Know">Ace Your Well Test Operator Interview: The Top 30 Questions You Need to Know </a></li> </ol> </div> </div> </div> </div> <div class="related-post"> <h2 class="post-title">Related Posts</h2> <div class="row"> <div class="col-1-1 col-sm-1-2 col-md-1-2"> <div class="card card-blog-post card-full-width"> <div class="card_body"> <div class="category-label-group"><span class="cat-links"><a class="ct-cat-item-2" href="https://yourcareersupport.com/category/interview/" rel="category tag">Interview</a> </span></div> <h4 class="card_title"> <a href="https://yourcareersupport.com/udacity-interview-questions/"> Preparing for a Udacity Interview: Commonly Asked Questions and How to Answer Them </a> </h4> <div class="entry-meta"> <span class="posted-on"><i class="fa fa-calendar"></i><a href="https://yourcareersupport.com/udacity-interview-questions/" rel="bookmark"><time class="entry-date published updated" datetime="2024-06-06T11:33:43+00:00">June 6, 2024</time></a></span><span class="byline"> <span class="author vcard"><i class="fa fa-user"></i><a class="url fn n" href="https://yourcareersupport.com/author/robby/">Robby</a></span></span> </div> </div> </div> </div> <div class="col-1-1 col-sm-1-2 col-md-1-2"> <div class="card card-blog-post card-full-width"> <div class="card_body"> <div class="category-label-group"><span class="cat-links"><a class="ct-cat-item-2" href="https://yourcareersupport.com/category/interview/" rel="category tag">Interview</a> </span></div> <h4 class="card_title"> <a href="https://yourcareersupport.com/typo3-cms-interview-questions/"> The Top 15 Typo3 CMS Interview Questions and Answers for 2023 </a> </h4> <div class="entry-meta"> <span class="posted-on"><i class="fa fa-calendar"></i><a href="https://yourcareersupport.com/typo3-cms-interview-questions/" rel="bookmark"><time class="entry-date published updated" datetime="2024-06-06T11:22:36+00:00">June 6, 2024</time></a></span><span class="byline"> <span class="author vcard"><i class="fa fa-user"></i><a class="url fn n" href="https://yourcareersupport.com/author/robby/">Robby</a></span></span> </div> </div> </div> </div> </div> </div> <!-- .related-post --> <!-- Related Post Code Here --> </article><!-- #post-88172 --> <nav class="navigation post-navigation" aria-label="Posts"> <h2 class="screen-reader-text">Post navigation</h2> <div class="nav-links"><div class="nav-previous"><a href="https://yourcareersupport.com/udacity-interview-questions/" rel="prev"><span class="nav-subtitle">Previous:</span> <span class="nav-title">Preparing for a Udacity Interview: Commonly Asked Questions and How to Answer Them</span></a></div></div> </nav> <div id="comments" class="comments-area"> <div id="respond" class="comment-respond"> <h3 id="reply-title" class="comment-reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/xhtml-interview-questions/#respond" style="display:none;">Cancel reply</a></small></h3><form action="https://yourcareersupport.com/wp-comments-post.php" method="post" id="commentform" class="comment-form" novalidate><p class="comment-notes"><span id="email-notes">Your email address will not be published.</span> <span class="required-field-message">Required fields are marked <span class="required">*</span></span></p><p class="comment-form-comment"><label for="comment">Comment <span class="required">*</span></label> <textarea id="comment" name="comment" cols="45" rows="8" maxlength="65525" required></textarea></p><p class="comment-form-author"><label for="author">Name <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" autocomplete="name" required /></p> <p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" maxlength="100" aria-describedby="email-notes" autocomplete="email" required /></p> <p class="comment-form-url"><label for="url">Website</label> <input id="url" name="url" type="url" value="" size="30" maxlength="200" autocomplete="url" /></p> <p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" /> <label for="wp-comment-cookies-consent">Save my name, email, and website in this browser for the next time I comment.</label></p> <p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Post Comment" /> <input type='hidden' name='comment_post_ID' value='88172' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p></form> </div><!-- #respond --> </div><!-- #comments --> </div> <div id="secondary" class="col-12 col-md-1-3 col-lg-1-3"> <aside class="widget-area"> <section id="search-2" class="widget widget_search"><form role="search" method="get" class="search-form" action="https://yourcareersupport.com/"> <label> <span class="screen-reader-text">Search for:</span> <input type="search" class="search-field" placeholder="Search …" value="" name="s" /> </label> <input type="submit" class="search-submit" value="Search" /> </form></section> <section id="recent-posts-2" class="widget widget_recent_entries"> <h2 class="widget-title">Recent Posts</h2> <ul> <li> <a href="https://yourcareersupport.com/xhtml-interview-questions/" aria-current="page">The Top 20 XHTML Interview Questions for Web Developers in 2023</a> </li> <li> <a href="https://yourcareersupport.com/udacity-interview-questions/">Preparing for a Udacity Interview: Commonly Asked Questions and How to Answer Them</a> </li> <li> <a href="https://yourcareersupport.com/typo3-cms-interview-questions/">The Top 15 Typo3 CMS Interview Questions and Answers for 2023</a> </li> <li> <a href="https://yourcareersupport.com/fred-meyer-interview-questions/">Mastering the Fred Meyer Interview: 15 Common Questions and How to Ace Them</a> </li> <li> <a href="https://yourcareersupport.com/medstar-health-interview-questions/">Top MedStar Health Interview Questions and Answers to Help You Ace the Interview</a> </li> </ul> </section><section id="categories-2" class="widget widget_categories"><h2 class="widget-title">Categories</h2> <ul> <li class="cat-item cat-item-5"><a href="https://yourcareersupport.com/category/career-development/">Career Development</a> </li> <li class="cat-item cat-item-10"><a href="https://yourcareersupport.com/category/cover-letter/">Cover Letter</a> </li> <li class="cat-item cat-item-6"><a href="https://yourcareersupport.com/category/finding-a-job/">Finding a Job</a> </li> <li class="cat-item cat-item-2"><a href="https://yourcareersupport.com/category/interview/">Interview</a> </li> <li class="cat-item cat-item-8"><a href="https://yourcareersupport.com/category/pay-salary/">Pay & Salary</a> </li> <li class="cat-item cat-item-3"><a href="https://yourcareersupport.com/category/professional-development/">Professional Development</a> </li> </ul> </section></aside><!-- #secondary --> </div> </div> </div> </section> </main><!-- #main --> </div> <!-- #content --> <footer id="colophon" class="site-footer"> <section class="site-footer-bottom"> <div class="container"> <div class="fairy-menu-social"> </div> <div class="container" style="text-align:center"> Copyright 2022 © yourcareersupport <br> <a href="/contact/" title="Contact">Contact</a> | <a href="/privacy-policy/" title="Privacy Policy">Privacy Policy</a> </div> </div> </section> </footer><!-- #colophon --> </div><!-- #page --> <a href="javascript:void(0);" class="footer-go-to-top go-to-top"><i class="fa fa-long-arrow-up"></i></a> <link rel='stylesheet' id='yarppRelatedCss-css' href='https://yourcareersupport.com/wp-content/plugins/yet-another-related-posts-plugin/style/related.css?ver=5.27.8' media='all' /> <script type="rocketlazyloadscript" 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}(); </script> <script id="rocket-preload-links-js-extra"> var RocketPreloadLinksConfig = {"excludeUris":"\/(?:.+\/)?feed(?:\/(?:.+\/?)?)?$|\/(?:.+\/)?embed\/|\/(index\\.php\/)?wp\\-json(\/.*|$)|\/wp-admin\/|\/logout\/|\/wp-login.php|\/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:\/\/yourcareersupport.com","onHoverDelay":"100","rateThrottle":"3"}; </script> <script type="rocketlazyloadscript" 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(); }()); </script> <script type="rocketlazyloadscript" src="https://yourcareersupport.com/wp-content/themes/fairy/js/navigation.js?ver=1.2.8" id="fairy-navigation-js"></script> <script type="rocketlazyloadscript" src="https://yourcareersupport.com/wp-content/themes/fairy/candidthemes/assets/custom/js/theia-sticky-sidebar.js?ver=1.2.8" id="theia-sticky-sidebar-js"></script> <script type="rocketlazyloadscript" src="https://yourcareersupport.com/wp-content/themes/fairy/candidthemes/assets/framework/slick/slick.js?ver=1.2.8" id="slick-js"></script> <script type="rocketlazyloadscript" src="https://yourcareersupport.com/wp-includes/js/imagesloaded.min.js?ver=5.0.0" id="imagesloaded-js"></script> <script type="rocketlazyloadscript" src="https://yourcareersupport.com/wp-includes/js/masonry.min.js?ver=4.2.2" id="masonry-js"></script> <script type="rocketlazyloadscript" src="https://yourcareersupport.com/wp-content/themes/fairy/candidthemes/assets/custom/js/custom.js?ver=1.2.8" id="fairy-custom-js-js"></script> <script type="rocketlazyloadscript" src="https://yourcareersupport.com/wp-includes/js/comment-reply.min.js?ver=6.7.1" id="comment-reply-js" async data-wp-strategy="async"></script> <div style="display:none"> <!-- Histats.com (div with counter) --><div id="histats_counter"></div> <!-- Histats.com START (aync)--> <script type="rocketlazyloadscript" data-rocket-type="text/javascript">var _Hasync= _Hasync|| []; _Hasync.push(['Histats.start', '1,4668781,4,29,115,60,00010000']); _Hasync.push(['Histats.fasi', '1']); _Hasync.push(['Histats.track_hits', '']); (function() { var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true; hs.src = ('//s10.histats.com/js15_as.js'); (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs); })();</script> <noscript><a href="/" target="_blank"><img src="//sstatic1.histats.com/0.gif?4668781&101" alt="" border="0"></a></noscript> <!-- Histats.com END --> </div> </body> </html> <!-- This website is like a Rocket, isn't it? Performance optimized by WP Rocket. Learn more: https://wp-rocket.me - Debug: cached@1733803407 -->