• Resolved behroozjanfada

    (@behroozjanfada)


    The plugin tries to load some resources via UNPKG.COM which is currently down. So it makes the website pretty unresponsive or very slow.

    Had to deactivate it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter behroozjanfada

    (@behroozjanfada)

    My suggestion to resolve the issue:

    class-modal.php, line 85
    change:
    wp_register_script( 'ttt_pnwc_micromodal', 'https://unpkg.com/micromodal/dist/micromodal.min.js', array( 'jquery' ), false, true );
    with:
    wp_register_script( 'ttt_pnwc_micromodal', 'https://fastly.jsdelivr.net/npm/micromodal/dist/micromodal.min.js', array( 'jquery' ), false, true );

    Plugin Support Taha Amin

    (@tahaamin)

    Hi @behroozjanfada,

    I hope you’re doing well.

    Thanks for bringing this to our attention! I’m forwarding your notice to the development team for review, and we will update you as soon as possible.

    Thanks for your patience!

    Plugin Author Pablo Pacheco

    (@karzin)

    Hi @behroozjanfada ,

    We have an option for it already. Please, set the option General > Micromodal loading method as Locally.

    Let me know if it helps.

    Thread Starter behroozjanfada

    (@behroozjanfada)

    Hi Pablo,

    Thank you for your answer. I was aware of that and changed the option to locally and that resolves the issue. However, I was thinking you might consider changing the CDN because of the UNPKG issues for those who like to load the modal library from a CDN.

    @karzin

    Plugin Author Pablo Pacheco

    (@karzin)

    Got it @behroozjanfada ,

    Thanks for the suggestion. I just released a new version (1.5.1) with a new option to load Micromodal from jsdelivr.com. I’m closing the ticket. Let me know if you notice something else ??

    Thread Starter behroozjanfada

    (@behroozjanfada)

    Great work @karzin

    Thank you! ??

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