For those who are awake!
Discount -15%
We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.20.14. JavaScript is not working or images are not displayed

When working on hosting, it should be borne in mind that the Windows operating system does not distinguish between uppercase and lowercase letters in files, in contrast to operating systems of the Linux family, which is installed on the server. In this regard, you should take into account that if you are in HTML specify the name of the image as Background.jpg, and the file in reality will be called background.jpgthen it will be displayed on the local Windows machine, but not on Linux.

To avoid this, we do not recommend using in file names:

  • Capital letters.
  • Spaces and special characters.
  • Cyrillic symbols.

Also for debugging and troubleshooting, you can use the developer tools in the browser (usually opened by clicking F12) Is a very powerful tool that no professional webmaster can work without. We highly recommend to study it for everyone who is engaged in the creation of sites.

To troubleshoot incorrect loading of images, styles, JavaScript and other files, we recommend that you follow the steps similar to these:

  1. Open the page on the site with the problem in your browser.
  2. Open developer tools by clicking F12 or combination Ctrl+Shift+I.
  3. In the window that appears, switch to the "Network» («Network»):
  4. Refresh the open page (for example, with Ctrl+F5).
  5. After reloading the page, a report will be displayed in the developer tools, in which you can easily find page elements that are not loading:
  6. By hovering the mouse cursor over the item that returned a 404 response when requested, you can see the full path to the file on the server:
  7. Opening the resulting path to FTP and we see that the file sample-1.jpg arecalled Sample-1.jpg and because of this they are not loaded. Rename a file from Sample-1.jpg in sample-1.jpg solves the problem.