NetTalk Central

Author Topic: Unreachable code after return JS warnings  (Read 3781 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Unreachable code after return JS warnings
« on: July 19, 2017, 12:56:29 PM »
Hi, Bruce

For quite a while, I have been getting red JS warnings flickering through my browser (firefox).   The firebug debugger identified "Unreachable code after return" errors (at least I am assuming these are causing the flicker).   They didn't seem to affect the pages themselves and I wrongly assumed they would disappear on changing to release mode.  I am a few minor releases behind (9.27) but didn't find any references to these warnings in the update history section, so here they are:

leaflet.js:3462:1
jquery.nt-browse.js:639:3

In general, is there a way keep these warnings from from flickering the JS error banner in release mode?  Thanks.

 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Unreachable code after return JS warnings
« Reply #1 on: July 20, 2017, 09:39:13 PM »
Hi Casey,

>>  I am assuming these are causing the flicker

they are not. The flicker is there by design. (if there is an error it stays.) You can turn off the test for this on the performance tab.

Cheers
Bruce

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Unreachable code after return JS warnings
« Reply #2 on: July 21, 2017, 12:40:52 PM »
Worked like a charm.  Thanks, Bruce