Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter disagree

    (@disagree)

    ( wrong wording; with theme files i meant frontend pages generated by the theme )

    Thread Starter disagree

    (@disagree)

    This could maybe be accomplished by hooking it up to

    add_action('login_init', 'functionname');
    and
    add_action('admin_init', 'functionname');

    instead of add_action('init', 'functionname'); which does it globally

    Hi, disagree. There’s currently no built-in option to exclude the JavaScript block on pages that don’t contain the login. Thankfully, the JS is pretty persistent in cache (good for end users, a bit inconvenient for when you’re making/testing setting changes) so the impact isn’t high. But, this is a good idea. I’m going to submit this as a feature request to our Product team.

    Thread Starter disagree

    (@disagree)

    check out the plugin ‘Typekit’, they have very nice options regarding that

    https://s.stefanxo.com/oBu.png

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘exclude javascript from theme files’ is closed to new replies.