Title: Multiply adding the same scripts and styles
Last modified: September 29, 2023

---

# Multiply adding the same scripts and styles

 *  Resolved [Alexander Guskov](https://wordpress.org/support/users/forcesail/)
 * (@forcesail)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/)
 * Hello and thanks for the plugin.
 * If there are a few [expand_makers] shortcodes on a page, methods ReadMoreIncludeManager::
   buttonContent() and ReadMoreIncludeManager::includeScripts() add as many script
   and style blocks as many [expand_makers] shortcodes on a page.
 * It makes page bigger and can conflict js-scripts (and make rendering page slower).
   Please fix it.

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

 *  Plugin Author [edmon.parker](https://wordpress.org/support/users/edmonparker/)
 * (@edmonparker)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17091910)
 * Dear [@forcesail](https://wordpress.org/support/users/forcesail/),
   Please update
   plugin to the latest version, in that version we did improvement.
 *  [strangeuser134](https://wordpress.org/support/users/strangeuser134/)
 * (@strangeuser134)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17092907)
 * hi read more team there’s a critical issue with read more plugin. After updating
   latest version I’m unable to edit my posts. When trying to create or edit post“
   There has been a critical error on this website. Please check your site admin
   email inbox for instructions” appearing in the screen.
 *  Plugin Author [edmon.parker](https://wordpress.org/support/users/edmonparker/)
 * (@edmonparker)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17094546)
 * Dear [@strangeuser134](https://wordpress.org/support/users/strangeuser134/),
   
   We made a change and here I am sending you a modified version[https://we.tl/t-40qXvENgW0](https://we.tl/t-40qXvENgW0)
   Please uninstall your current version and install this one.
 * If it’s not affected please enable WordPress debug mod from WordPress wp-config.
   php that can help us to see the Error.
   looking forward to your reply
 *  Plugin Author [edmon.parker](https://wordpress.org/support/users/edmonparker/)
 * (@edmonparker)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17094666)
 * Please use this one [https://we.tl/t-wTd5mG7oIH](https://we.tl/t-wTd5mG7oIH)
   
   Please check and let me know about your progress.
 *  Thread Starter [Alexander Guskov](https://wordpress.org/support/users/forcesail/)
 * (@forcesail)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17096590)
 * Hello.
 * I have updated to v.3.2.6.1 and don’t meet the critical issue, described by [@strangeuser134](https://wordpress.org/support/users/strangeuser134/)
   neither that the topic issue has fixed.
 * So, nothing has changed, I still have as many the similar <style> and <script
   > blocks as many [expand-maker] shortcodes on the page.
 * You can enjoy it by yourself here:
   [https://forcesail.ru/%d1%8f%d1%85%d1%82%d1%88%d0%ba%d0%be%d0%bb%d0%b0/](https://forcesail.ru/%d1%8f%d1%85%d1%82%d1%88%d0%ba%d0%be%d0%bb%d0%b0/)
 *  Plugin Author [edmon.parker](https://wordpress.org/support/users/edmonparker/)
 * (@edmonparker)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17096630)
 * Dear [@forcesail](https://wordpress.org/support/users/forcesail/),
   Could you 
   please mention which scripts and styles are duplicated on your website? and when
   you add new read more it’s include new script?Please the first clear your browser
   cache also, because we did improvements and now readMoreArgs where we have read
   more settings now are unique per read more.If you give more detailed information,
   we will be happy to improve them
 *  Thread Starter [Alexander Guskov](https://wordpress.org/support/users/forcesail/)
 * (@forcesail)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17097020)
 * I see a lot of pairs of styles for .yrm-toggle-expand-3 on line 744 of the page
   mentioned above and the some number of scripts with the same code.
 * I believe you can check it by yourself getting inside of [https://forcesail.ru/%d1%8f%d1%85%d1%82%d1%88%d0%ba%d0%be%d0%bb%d0%b0/](https://forcesail.ru/%d1%8f%d1%85%d1%82%d1%88%d0%ba%d0%be%d0%bb%d0%b0/)
 * All caches are currently off.
 *  Plugin Author [edmon.parker](https://wordpress.org/support/users/edmonparker/)
 * (@edmonparker)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17097226)
 * Dear [@forcesail](https://wordpress.org/support/users/forcesail/),
   Could you 
   please try this modified version [https://we.tl/t-G4pkrsrkGb](https://we.tl/t-G4pkrsrkGb)
   If it’s ok, it will be included in our upcoming update.Looking forward to your
   reply
 *  Thread Starter [Alexander Guskov](https://wordpress.org/support/users/forcesail/)
 * (@forcesail)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17098010)
 * Dear @edmonparke,
 * I have tested the last modified version and it looks it works fine.
 * As you have significantly improved this block of code, probably you would join
   all descriptions the same class to one and join <style></style> to one (for example,
   currently plugin generates 5 css descriptions of .yrm-toggle-expand-3 class in
   5 <style></style> blocks) .
 * Actually we are fighting for site performance 🙂
 *  Plugin Author [edmon.parker](https://wordpress.org/support/users/edmonparker/)
 * (@edmonparker)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17098205)
 * Dear [@forcesail](https://wordpress.org/support/users/forcesail/),
   Thank you 
   for your reply, we will do that on our upcoming update.If you will have any new
   feature suggestions also, please write here in support forum and we will be happyThanks.

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

The topic ‘Multiply adding the same scripts and styles’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/expand-maker_ac0598.svg)
 * [Read More & Accordion](https://wordpress.org/plugins/expand-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/expand-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/expand-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/expand-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/expand-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/expand-maker/reviews/)

 * 10 replies
 * 3 participants
 * Last reply from: [edmon.parker](https://wordpress.org/support/users/edmonparker/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/multiply-adding-the-same-scripts-and-styles/#post-17098205)
 * Status: resolved