If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

JS Animated. How to fix “Failed to load resource: the server responded with a status of 406 error”

This tutorial shows how to fix “Failed to load resource: the server responded with a status of 406 error” issue in Ajax based template.

JS Animated. How to fix “Failed to load resource: the server responded with a status of 406 error”

In case you uploaded the ajax-based template to your server and the inner pages keep loading without showing any content, you need to find out what error is coming up in your browser Console tab:

How_to_fix Failed_to_load_resource-1

To locate the error message, press F12 key and go to the Console tab:

How_to_fix Failed_to_load_resource-2

In case the mentioned error comes up, please follow the steps listed below to fix the issue:

  1. Connect to your FTP and go to JS folder:

    How_to_fix Failed_to_load_resource-3

  2. Locate the following file: ajax.js.switch.js:

    How_to_fix Failed_to_load_resource-4

  3. Press CTRL+G to indicate the required line of code which is 61 in our case:

    How_to_fix Failed_to_load_resource-5

  4. Locate the following line:

    accepts: "html",

    and comment it to make it look this way:

    //accepts: "html",

    How_to_fix Failed_to_load_resource-6

  5. Save the changes and re-upload the file to the server. The error is gone now and you can see all the template pages working with no issues.

Feel free to check the detailed video tutorial below:

JS Animated. How to fix “Failed to load resource: the server responded with a status of 406 error”