• Resolved spoxnr

    (@spoxnr)


    Parsing all the datatables javascript files is slowing my website down for speed ratings. (I have datatables turned off as well.)
    How can I have the plugin only call external datatables javascript files on pages where the plugin shortcode is used? Or how can I have the plugin not call external javascript files all together?
    Cheers!

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

    (@meitar)

    Have you read this plugin’s Frequently Asked Questions page? Look for the heading that reads “How do I remove unneeded stylesheets or JavaScripts that this plugin adds?”

    • This reply was modified 9 years, 6 months ago by Meitar.
    Thread Starter spoxnr

    (@spoxnr)

    There isn’t any reason to modify my theme to change the behavior of a plugin so I actually went ahead and edited the plugin’s code by commenting out the following line:

    add_action('wp_enqueue_scripts', array($this, 'addFrontEndScripts'));

    Worked like a charm!
    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Defer Datatables javascript parsing’ is closed to new replies.