D
D
Dmitry Dergunov2016-08-23 15:31:13
JavaScript
Dmitry Dergunov, 2016-08-23 15:31:13

Why doesn't javascript from external files work on iPad?

On the site, the file with scripts is connected in the standard way via script src=""
I found out that the iPad simply does not see the scripts from this file, I checked it on Safari and Chrome. The problem is browser independent.
On desktop and phone (android) there are no problems.
If the script from the file is placed in the body of the page, then it works.
iOS version 9.2.1
What is the problem and how can I fight?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Почти, 2016-08-24
@dmitry05670916

Что бы все работала на айпаде , в начале js файла включите строгий режим -> пропишите в первой строке -> use strict << , далее открываете на компе сайт и консоль и исправляете.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question