Top 15 XHTML Interview Questions for Web Developers

As a web developer, having a strong grasp of XHTML is crucial for creating standards-compliant and accessible websites. With its XML-based syntax, XHTML enables you to write cleaner, well-structured code that leads to fewer errors and better compatibility across different browsers and devices.

In job interviews, expect to face a range of questions testing your understanding of XHTML – from the basic concepts to real-world applications and troubleshooting. This article compiles 15 common XHTML interview questions that you may encounter. Read on to learn the answers and boost your preparation.

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

While HTML is focused on displaying information, XHTML aims to describe information as well. The key differences are

  • XHTML elements must be properly nested and closed.
  • Lowercase tag names are required in XHTML.
  • Attributes must be quoted in XHTML.
  • XHTML documents need one root element.
  • Empty elements like <br> must be closed in XHTML e.g. <br />

These strict syntax rules make XHTML more standardized and compatible across platforms

2. How can you ensure an XHTML document is valid?

To validate XHTML and check for errors, follow these practices:

  • Use the correct XHTML doctype declaration.
  • Properly nest tags and close all elements.
  • Check for proper use of lowercase tag and attribute names.
  • Quote all attribute values.
  • Use self-closing tags like <br /> for empty elements.
  • Validate frequently with tools like W3C Markup Validation Service.

3. What are the benefits of serving XHTML pages as XML rather than HTML?

When served as application/xhtml+xml, XHTML is treated as XML by web browsers. This ensures:

  • Proper parsing and handling of XHTML markup.
  • Ability to process XHTML using XML tools.
  • Leveraging XML features like namespaces.
  • Clear identification as an XML application vs HTML.

Overall, it respects the XML principles of stricter structure and syntax.

4. How do you handle special characters and symbols in XHTML?

In XHTML, special characters like < or & must be written with character entities like &lt; and &amp;. For other symbols, I refer to resources like W3Schools’ list of XHTML entities to find the correct codes.

For non-ASCII characters, I use numeric character references like &#169; for the copyright symbol. If needed, I can also set the encoding to UTF-8 to allow direct use of special characters.

5. What are some key points for writing JavaScript in XHTML documents?

When adding JavaScript in XHTML:

  • Use CDATA sections like <script><![CDATA[JavaScript code]]></script> to avoid parsing errors from special characters.
  • Add type="text/javascript" attribute to the script tag.
  • Put script tags inside the <head> element.
  • Validate the XHTML document after adding scripts to catch errors.
  • Ensure graceful degradation if JavaScript is disabled on the user’s browser.

6. How is error handling different in XHTML compared to HTML?

XHTML uses XML’s strict error handling. If the document is not well-formed with proper nesting, closing tags etc., the browser will stop processing and show an error.

HTML is more forgiving – browsers try to recover from errors and make a best guess at rendering the faulty markup. This can lead to inconsistencies.

7. What are some key accessibility considerations for XHTML pages?

To make XHTML pages accessible:

  • Use semantic elements like <header>, <nav>, <main> etc.
  • Provide textual descriptions in alt attributes for images.
  • Ensure form inputs have associated <label> elements.
  • Make interactive elements keyboard accessible.
  • Use ARIA roles and attributes when needed.
  • Follow color contrast standards.
  • Allow font resizing by using EM/REM units.

8. How do you validate an XHTML document?

I validate XHTML using:

  • W3C Markup Validation Service – Allows file uploads, direct input or URL.
  • Browser Developer Tools – Highlight errors in the code.
  • Build Process Validation – Integrate a validator like grunt-html in the build pipeline.
  • Fragment Testing – Validate parts of a large document.

This catches issues so I can fix them early before deployment.

9. What is the purpose of the XML prolog in XHTML?

The XML prolog appears at the top of an XHTML document with the XML declaration like:

xml

<?xml version="1.0" encoding="UTF-8"?>

It specifies the XML version in use and the document’s character encoding. The prolog is optional but recommended in XHTML as it ensures proper interpretation of the character set.

10. How do you implement a clickable image link in XHTML?

To make an image link in XHTML:

html

<a href="https://example.com">  <img src="image.jpg" alt="Image description" /> </a>

The <a> tag makes the image clickable while the alt text provides a textual description for accessibility.

11. What is the purpose of namespaces in XHTML?

Namespaces allow combining XHTML with other XML languages by providing a unique identifier to avoid naming conflicts.

For example, to use MathML equations within XHTML:

html

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

The m: namespace prefix prevents confusion between XHTML and MathML tags.

12. How can you minimize DOM reflows when dynamically updating a webpage?

To minimize reflows:

  • Batch DOM changes together before repainting.
  • Avoid interspersing read and write DOM operations.
  • Append new elements at once rather than inserting separately.
  • Avoid unnecessary style recalculations.
  • Defer non-critical repaints where possible.

This improves performance when making intensive DOM updates.

13. What are some key tools for testing cross-browser compatibility of XHTML pages?

  • BrowserStack – Test across browsers on different devices/OS.
  • Browsershots – Provides screenshots for cross-browser comparisons.
  • Modern.IE – Free Microsoft tool for IE testing.
  • Browserling – Performs live interactive testing across browsers.
  • LambdaTest – Feature-rich browser testing solution.

Using these tools, I can identify and fix compatibility issues.

14. How do you implement a styled dropdown menu in XHTML?

Here is one approach:

html

<ul id="menu">  <li><a href="#">Item 1</a>    <ul>      <li><a href="#">Sub-item 1</a></li>      <li><a href="#">Sub-item 2</a></li>    </ul>   </li></ul>

Use CSS to absolutely position the submenu and toggle visibility on hover.

15. What are some key differences in developing for mobile vs desktop browsers with XHTML?

For mobile XHTML development:

  • Optimize design and content for smaller screens.
  • Ensure keyboard accessibility for devices without mice.
  • Check for mobile browser CSS and JavaScript support.
  • Reduce image sizes and HTTP requests.
  • Implement responsive design with media queries.
  • Validate for performance on slower network connections.

The constraints of mobile devices require additional testing and performance considerations.

Summary

XHTML is a pivotal skill for web developers today as it promotes good coding practices that lead to more robust, interoperable websites. Preparing answers to common XHTML interview questions demonstrates your understanding of web standards and ability to write semantic, valid markup.

Knowing how to explain your approach to writing, testing and maintaining XHTML documents also highlights your technical expertise in this field. With the responses provided in this article, you can now tackle XHTML interview questions confidently!

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.

This is because the code is very big, which makes it take 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. It’s also worth considering that HTML should not be confused with HTML5 as they are different.

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.

Why is XHTML more strict than HTML?

XHTML was developed to make HTML more extensible and flexible to work with other data formats (such as XML). In addition, browsers ignore errors in HTML pages, and try to display the website even if it has some errors in the markup. So XHTML comes with a much stricter error handling.

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?

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://carreersupport.com/carpet-cleaning-technician-interview-questions/" rel="bookmark" title="Carpet Cleaning Technician Interview Questions: What You Need to Know to Ace the Interview">Carpet Cleaning Technician Interview Questions: What You Need to Know to Ace the Interview </a></li> <li><a href="https://carreersupport.com/pipe-layer-interview-questions/" rel="bookmark" title="The Top 10 Pipe Layer Interview Questions and How to Ace Them">The Top 10 Pipe Layer Interview Questions and How to Ace Them </a></li> <li><a href="https://carreersupport.com/digital-sales-manager-interview-questions/" rel="bookmark" title="Ace Your Digital Sales Manager Interview: The Top 30 Questions and Answers You Need to Know">Ace Your Digital Sales Manager Interview: The Top 30 Questions and Answers You Need to Know </a></li> <li><a href="https://carreersupport.com/business-analyst-consultant-interview-questions/" rel="bookmark" title="The Top 10 Business Analyst Consultant Interview Questions and How to Answer Them">The Top 10 Business Analyst Consultant Interview Questions and How to Answer Them </a></li> </ol> </div> <div class='code-block code-block-2' style='margin: 8px 0; clear: both;'> <script type="rocketlazyloadscript" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1025439600050704" crossorigin="anonymous"></script> <!-- after content --> <ins class="adsbygoogle" style="display:inline-block;width:336px;height:250px" data-ad-client="ca-pub-1025439600050704" data-ad-slot="7011075720"></ins> <script type="rocketlazyloadscript"> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div> <!-- AI CONTENT END 1 --> </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-4" href="https://carreersupport.com/category/interview/" rel="category tag">Interview</a> </span></div> <h4 class="card_title"> <a href="https://carreersupport.com/symmetry-financial-group-interview-questions/"> Ace Your Symmetry Financial Group Interview: The Top 10 Questions and Answers </a> </h4> <div class="entry-meta"> <span class="posted-on"><i class="fa fa-calendar"></i><a href="https://carreersupport.com/symmetry-financial-group-interview-questions/" rel="bookmark"><time class="entry-date published updated" datetime="2024-07-16T17:33:34+00:00">July 16, 2024</time></a></span><span class="byline"> <span class="author vcard"><i class="fa fa-user"></i><a class="url fn n" href="https://carreersupport.com/author/quydp/">quydp</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-4" href="https://carreersupport.com/category/interview/" rel="category tag">Interview</a> </span></div> <h4 class="card_title"> <a href="https://carreersupport.com/chime-interview-questions/"> Ace Your Chime Interview: The Top Questions You’ll Be Asked and How to Nail Them </a> </h4> <div class="entry-meta"> <span class="posted-on"><i class="fa fa-calendar"></i><a href="https://carreersupport.com/chime-interview-questions/" rel="bookmark"><time class="entry-date published updated" datetime="2024-07-16T17:21:15+00:00">July 16, 2024</time></a></span><span class="byline"> <span class="author vcard"><i class="fa fa-user"></i><a class="url fn n" href="https://carreersupport.com/author/quydp/">quydp</a></span></span> </div> </div> </div> </div> </div> </div> <!-- .related-post --> <!-- Related Post Code Here --> </article><!-- #post-162164 --> <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://carreersupport.com/laser-engineer-interview-questions/" rel="prev"><span class="nav-subtitle">Previous:</span> <span class="nav-title">The Top Laser Engineer Interview Questions and How to Ace Them</span></a></div><div class="nav-next"><a href="https://carreersupport.com/merck-interview-questions/" rel="next"><span class="nav-subtitle">Next:</span> <span class="nav-title">The Complete Guide to Acing Your Merck Interview</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://carreersupport.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='162164' 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="fairy-social-icons-2" class="widget fairy-menu-social"><h2 class="widget-title">Follow Us</h2></section><section id="search-2" class="widget widget_search"><form role="search" method="get" class="search-form" action="https://carreersupport.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://carreersupport.com/how-to-calculate-percentile-rank/">How to Calculate Percentile Rank Step-by-Step</a> </li> <li> <a href="https://carreersupport.com/i-want-to-be-a-lawyer/">I Want To Be A Lawyer: A Step-By-Step Guide to Becoming an Attorney</a> </li> <li> <a href="https://carreersupport.com/how-to-record-accrued-revenue/">How to Properly Record Accrued Revenue for Your Business</a> </li> <li> <a href="https://carreersupport.com/how-to-write-research-plan/">How to Write an Effective Research Plan: The Ultimate Guide</a> </li> <li> <a href="https://carreersupport.com/how-to-manage-double-major/">Pursuing a Double Major in College: A Guide to Making it Work</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-11"><a href="https://carreersupport.com/category/career-development/">Career Development</a> </li> <li class="cat-item cat-item-12"><a href="https://carreersupport.com/category/finding-a-job/">Finding a Job</a> </li> <li class="cat-item cat-item-4"><a href="https://carreersupport.com/category/interview/">Interview</a> </li> <li class="cat-item cat-item-10"><a href="https://carreersupport.com/category/pay-salary/">Pay & Salary</a> </li> <li class="cat-item cat-item-1"><a href="https://carreersupport.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 2021 © CarreerSupport <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 data-minify="1" rel='stylesheet' id='yarppRelatedCss-css' href='https://carreersupport.com/wp-content/cache/min/1/wp-content/plugins/yet-another-related-posts-plugin/style/related.css?ver=1671250819' 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","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|php|pdf|html|htm","siteUrl":"https:\/\/carreersupport.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://carreersupport.com/wp-content/themes/fairy/js/navigation.js?ver=1.2.8" id="fairy-navigation-js"></script> <script type="rocketlazyloadscript" src="https://carreersupport.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://carreersupport.com/wp-content/themes/fairy/candidthemes/assets/framework/slick/slick.js?ver=1.2.8" id="slick-js"></script> <script type="rocketlazyloadscript" src="https://carreersupport.com/wp-includes/js/imagesloaded.min.js?ver=5.0.0" id="imagesloaded-js"></script> <script type="rocketlazyloadscript" src="https://carreersupport.com/wp-includes/js/masonry.min.js?ver=4.2.2" id="masonry-js"></script> <script type="rocketlazyloadscript" src="https://carreersupport.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://carreersupport.com/wp-includes/js/comment-reply.min.js?ver=6.6.2" 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,4613209,4,5,172,25,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?4613209&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 -->