Support » Plugin: Inline Google Spreadsheet Viewer » plugin appears to enqueue a prefetch of clouldflare

  • Resolved rweil55

    (@rweil55)


    This Plugin appears to enqueue a prefetch of clouldflare
    Is that necessary? What is it expecting to cache? Hopefully not the data as that changes.

    I once had clouldflare on my site, I attempted to removed all the clouldflare code/config stuff. Other plugins that enqueued clouldflare no longer do so.

    The following two lines appear in all my files when I activate the inline viewer and disappear when I deactivate it.
    <link rel=’dns-prefetch’ href=’//cdn.datatables.net’ />
    <link rel=’dns-prefetch’ href=’//cdnjs.cloudflare.com’ />

    Thoughts?
    Roy

    The page I need help with: [log in to see the link]

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

    (@meitar)

    My thoughts are that you might want to read the FAQ titled “How do I remove unneeded stylesheets or JavaScripts that this plugin adds?”

    Meitar

    That faq, nor the “Other Notes” nor the support forum appear not contain the words “clouldflare” or “cdn”, so I am still at a lost of what to do.

    Roy

    Plugin Author Meitar

    (@meitar)

    I am still at a lost of what to do.

    Well then at this point my advice is to read a JavaScript book or ask your web developer friend(s) if you have some for help. Good luck.

    What is the incantation for deactivating clouldflare in your script i,e what should I replace “igsv-gvizcharts” with.

    unset($scripts[‘igsv-gvizcharts’]);

    Another alternative is to remove the plugin and give a one star rating for developer response.

    Plugin Author Meitar

    (@meitar)

    What is the incantation for deactivating clouldflare in your script i,e what should I replace “igsv-gvizcharts” with.

    The incantation is pasted into the FAQ answer that you ignored. Here, I’ll copy-and-paste it for you:

    Use the gdoc_enqueued_front_end_styles or gdoc_enqueued_front_end_scripts filter hooks. For instance, to prevent the plugin from enqueueing the JavaScript file for the Google Charts, use code like the following in your theme’s functions.php file:

    function igsv_dequeue_google_charts_script ($scripts) {
        unset($scripts['igsv-gvizcharts']);
        return $scripts;
    }
    add_filter('gdoc_enqueued_front_end_scripts', 'igsv_dequeue_google_charts_script');

    See the Other Notes page for a full list of registered script and stylesheet handles this plugin uses.

    Oh, and one more thing, Roy:

    Another alternative is to remove the plugin and give a one star rating for developer response.

    You know what I’ll do for you? I’m going to offer you a complete refund of the full $0 you paid for your use of this plugin and for your use of its free support forum. 🙂 How does that sound to you?

    Look, Roy, and everyone else on this forum who treats this like a customer service kiosk: you are not my customer and this plugin is not a product. If you want someone to hold your hand and treat you like an incapable infant even after they have already answered your question, that’s fine by me. You can go buy a support subscription from a company whose product does what this plugin does. You and your rating really doesn’t matter to me, but the fact that you might think you can get better support by threatening such a thing tells me everything I need to know to make sure you are someone with whom this interaction will be my last.

    So go ahead and leave your 1 star review while simultaneously ignoring the answer to the question you asked. Because that makes a whole lot of sense.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.