• Resolved wprox

    (@wprox)


    Hi Jeff,

    Thanks so much for the great plugin!

    My social sharing plugin, when I turn off javascript, does not work. So I have a second social plugin to display in no-javascript situations.

    I hide or show either plugin’s sharing buttons using css depending on whether js is available. Of course their codes both actually run on the page in either situation.

    Is there a way, like your plugin does, to disable the code of one of the plugins on a page where it is not going to be used because that page is js or nojs?

    Just thought I’d check. Hate seeing code loaded on a page where it is not being used.

    Thanks so much ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Sterup

    (@foomagoo)

    Not unless you detect that the user doesn’t have js enabled and it forwards them to a special page. The PHP code is loaded server side so it runs before the browser is ever brought into the equation and doesn’t know whether the browser has javascript or not.

    Thread Starter wprox

    (@wprox)

    Thanks a lot Jeff ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No js’ is closed to new replies.