When I try to load //js.pusher.com/2.2/pusher.min.js","js on click envent
It is showing
Uncaught ReferenceError: Pusher is not defined
How to solve this?
When I try to load //js.pusher.com/2.2/pusher.min.js","js on click envent
It is showing
Uncaught ReferenceError: Pusher is not defined
How to solve this?
Copyright © 2021 Jogjafile Inc.
Here's how to diagnose if
Pushershould be defined:Is the URL accessible for you?
The first thing to do is go to the URL that you are trying and ensure that the script contents loads in your browser.
Do you see the script loaded when going to js.pusher.com/2.2/pusher.min.js? How about over SSL http://js.pusher.com/2.2/pusher.min.js?
If you can't load the script then it's possible something is blocking it.
Is the
Pusherobject defined?Next, you can try going to this following JSBin example. Do you see "function" appear in the output? http://jsbin.com/zumepu/1/edit?html,output
If so, it means the script has loaded the the
Pusherfunction is defined.Note: From the findings above, please update the questions if you get more information