ijlal
ijlal

Reputation: 33

IE blocking JQuery on the first time page load

I am uploading a script on a CEWP which uses JQUERY. The code does not execute on the first time It is loaded in IE. as pop up bow appears at the bottom of the page pormting the end user if he wants to allow blocked content..only when checked, that the page reloads..and the script gets executed

Is there a way to avoid this and have the blocked content enabled form the start

Thank you Julia

Upvotes: 0

Views: 499

Answers (1)

Kevin B
Kevin B

Reputation: 95047

Make sure you always include your scripts with the same protocol as your domain. to do this automatically, use a protocol-relative url.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

Note, this won't work if you're working from the file system, for example, file://mypage.html

Upvotes: 2

Related Questions