Title: Plugin Improvement Feedback
Last modified: March 14, 2021

---

# Plugin Improvement Feedback

 *  [–](https://wordpress.org/support/users/jorcus/)
 * (@jorcus)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-improvement-feedback/)
 * Hi Floating Contact Plugin Developer,
    I’m currently using your plugin on my 
   [site](https://jorcus.com). It’s really useful and I LOVE IT so much.
 * The reasons I like it because
    – Super Lightweight (PageSpeed) – Simplicity
 * However, I would like to give you some improvement tips to the plugin. (as you
   open for feedback and I need the improvement too)[plus I’m lazy to code my self
   too]
 * – Currently the plugin allowed us to place contact form shortcode. But unfortunetely,
   it might open up for spammers to spam over the site and submit contact form. 
   The submit forms code and scripts are also runs everywhere even when we didn’t
   open the chat box.
 * To prevent it, I suggest you to use add new function like iframe ([lazy-loaded](https://make.wordpress.org/core/2021/02/19/lazy-loading-iframes-in-5-7/))
   or embed code instead of just shortcode. It can improve the page speed and also
   able to reduce spam. since the form scripts doesn’t load if we don’t open the
   chat. (lazyload)
    -  This topic was modified 5 years, 2 months ago by [-](https://wordpress.org/support/users/jorcus/).

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

 *  Thread Starter [–](https://wordpress.org/support/users/jorcus/)
 * (@jorcus)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-improvement-feedback/#post-14178652)
 * I’ve tested with iframe. It seems doesn’t work that way. But, I tried to set #
   fcb-modal display none by default and use JS code to display it. when clicked
   the button
 * Code eg:
 *     ```
       <style>#fcb-modal { display: none; } </style> 
       [wpforms id="13199" title="false"] 
   
       <script>var el = document.getElementsByClassName('fcb-link-button')[0]; el.onclick = function() {     document.getElementById('fcb-modal').style.display = "block"; };   if (window.location.href.indexOf("fcb-modal") > -1) {     document.getElementById('fcb-modal').style.display = "block"; }</script>
       ```
   
 * and this works! Maybe I can do it with CSS when I have time. Set #fcb-modal display:
   none by default, and display:block when clicked on it. or url contains #fcb-modal
 * After few tests. I think this doesn’t work. Just noticed that The WPforms CSS
   and JS scripts still run in background when the button didn’t clicked. I think
   need some custom work.
    -  This reply was modified 5 years, 2 months ago by [-](https://wordpress.org/support/users/jorcus/).
    -  This reply was modified 5 years, 2 months ago by [-](https://wordpress.org/support/users/jorcus/).
 *  Plugin Author [Christoph Nagel](https://wordpress.org/support/users/cmsgeek/)
 * (@cmsgeek)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-improvement-feedback/#post-14203450)
 * Hi [@jorcus](https://wordpress.org/support/users/jorcus/) ,
 * first of all thank you very much for your feedback.
 * In my projects I usually use the Contact Form 7 in combination with the Google
   Captcha so that I could not detect any major spam attacks so far.
 * You are absolutely right that it would be nicer if the corresponding scripts 
   are loaded only when you have actually clicked the button and the modal opens.
   I would have to analyze this once, because many form plugins generally set their
   scripts globally after installation. Perhaps a solution can be found here nevertheless.
 * Best regards,
    Chris

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

The topic ‘Plugin Improvement Feedback’ is closed to new replies.

 * ![](https://ps.w.org/floating-contact/assets/icon-128x128.png?rev=2930548)
 * [Floating Contact Button](https://wordpress.org/plugins/floating-contact/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/floating-contact/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/floating-contact/)
 * [Active Topics](https://wordpress.org/support/plugin/floating-contact/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/floating-contact/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/floating-contact/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Christoph Nagel](https://wordpress.org/support/users/cmsgeek/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-improvement-feedback/#post-14203450)
 * Status: not resolved