Title: bad programming practice? &#8211;&gt; code injection on every page?
Last modified: July 14, 2021

---

# bad programming practice? –> code injection on every page?

 *  Resolved [jochenthomas](https://wordpress.org/support/users/jochenthomas/)
 * (@jochenthomas)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/bad-programming-practice-code-injection-on-every-page/)
 * Hi,
    on every single page, a bunch of code is injected into the header. 6 to 
   10 single HTTP requests are existing. This is slowing down the site and a plugin
   provider should know this.
 * If bookly is ONLY integrated/used on a single page, how it is possible to avoid
   code injection on 99% of the rest of the page?

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

 *  Plugin Author [Bookly](https://wordpress.org/support/users/ladela/)
 * (@ladela)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/bad-programming-practice-code-injection-on-every-page/#post-14664366)
 * Hello,
 * Can you try changing the “Method to include Bookly JavaScript and CSS files on
   the page” setting from “Enqueue” to “Print”?
 *  Thread Starter [jochenthomas](https://wordpress.org/support/users/jochenthomas/)
 * (@jochenthomas)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/bad-programming-practice-code-injection-on-every-page/#post-14679884)
 * Sorry for the late reply…
    NO, not possible. Only the Spinner is visible. How
   I am going to resolve this? How I can dequeue to manage the deployment on certain
   pages?
    -  This reply was modified 4 years, 10 months ago by [jochenthomas](https://wordpress.org/support/users/jochenthomas/).
 *  Plugin Author [Bookly](https://wordpress.org/support/users/ladela/)
 * (@ladela)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/bad-programming-practice-code-injection-on-every-page/#post-14680807)
 * Can you check if you don’t use caching(plugins or on the server side)? The plugin
   is not compatible with caching. If that’s not the case and the mentioned setting
   didn’t help, then you need to investigate – which plugin or theme is causing 
   this problem and look for an alternative.
 *  Thread Starter [jochenthomas](https://wordpress.org/support/users/jochenthomas/)
 * (@jochenthomas)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/bad-programming-practice-code-injection-on-every-page/#post-14695865)
 * Thanks for your answer, but I do not understand…
 * In the source-code of **ALL** pages I see -as already stated- dozens of CSS and
   js-scripts included in the header only for a single plugin (= bookly). Each of
   them creates unwanted HTTP calls, which slows down the pages or will affect the
   page scores – even on pages not necessary.
    As you are the plugin programmer 
   only you can take care of such performance-critical topics…
 * I want to see such a high number of scripts/CSS-calls only on a single page (
   where bookly is used).
 * How is this related to a caching tool?
    That your plugin is not compatible with
   caching is understood. But how a caching plugin minimizes the vast amount of 
   HTTP-calls?
 * How -again the question- I can dequeue all existing bookly scripts in functions.
   php on certain pages if your print method has no effect?
 * What is the idea behind the print-method.
    How is it working? Why other plugins
   can prevent this method from working? What could be a possible reason? Without
   background information, I cannot investigate…
 *  Plugin Author [Bookly](https://wordpress.org/support/users/ladela/)
 * (@ladela)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/bad-programming-practice-code-injection-on-every-page/#post-14703718)
 * Hello. The issue you’ve raised requires personalized support, therefore, please
   contact us directly on our site for further actions and details.
 * Many thanks!
 *  Plugin Author [Bookly](https://wordpress.org/support/users/ladela/)
 * (@ladela)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/bad-programming-practice-code-injection-on-every-page/#post-14869726)
 * Hello,
 * As we haven’t received any support request from you via our website, we will 
   go ahead and mark this thread as resolved.
 * You can always reach out to us in the future via our website if you have any 
   issues, and we’ll be happy to help.

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

The topic ‘bad programming practice? –> code injection on every page?’ is closed
to new replies.

 * ![](https://ps.w.org/bookly-responsive-appointment-booking-tool/assets/icon-256x256.
   png?rev=2847809)
 * [Online Scheduling and Appointment Booking System – Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bookly-responsive-appointment-booking-tool/)
 * [Active Topics](https://wordpress.org/support/plugin/bookly-responsive-appointment-booking-tool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bookly-responsive-appointment-booking-tool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bookly-responsive-appointment-booking-tool/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Bookly](https://wordpress.org/support/users/ladela/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/bad-programming-practice-code-injection-on-every-page/#post-14869726)
 * Status: resolved