Only load wpgmza_data.js on certain pages

New home Forums Basic Version Only load wpgmza_data.js on certain pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #59807
    lord
    Member

    Hi guys,

    Just wondering if it’s possible to load the JS file only on pages that need it? I noticed it’s also being loaded on other pages where there are no maps.

    Cheers,
    Lord

    #59812
    Perry
    Moderator

    Hi Lord

    Thank you for getting in touch and thank you for pointing this out.

    This file is used as a placeholder in order to facilitate transmission of inline JavaScript where it becomes necessary.

    It’s also a placeholder for a future 8.1 release in which we’ll be using this file to fully support AJAX loading.

    If you absolutely must block this file then you can use a plugin to manually block that from loading. Please note that this would break AJAX loading in 8.1 if you intend to use that.

    Is there anything else we can help you with?

    Kind regards
    – Perry

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