# The overall optimization. Plugins

**URL:** <https://meta.discourse.org/t/the-overall-optimization-plugins/67732>\
**Category:** Development\
**Created:** [August 9, 2017, 8:19pm UTC](https://meta.discourse.org/t/the-overall-optimization-plugins/67732 "2017-08-09T20:19:47Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [August 9, 2017, 8:19pm UTC](https://meta.discourse.org/t/the-overall-optimization-plugins/67732/1 "2017-08-09T20:19:47Z")

</div>

A specific example. There are 2 plug-in.

**1.** 1/assets/javascripts/discourse/initializers/1.js.es6

```
 import { withPluginApi } from 'discourse/lib/plugin-api';
 import RawHtml from 'discourse/widgets/raw-html';

 function attachSignature(api) {
 api.includePostAttributes('reply_to_post_number');
 api.decorateWidget('post-contents:before', dec => {.....

```

**2.** 2/assets/javascripts/discourse/initializers/2.js.es6

```
import { withPluginApi } from 'discourse/lib/plugin-api';
function startVoting(api){....

```

As it is advisable to combine two or more plug-in to exclude the connection of the first rows…

```
 import { withPluginApi } from 'discourse/lib/plugin-api';
 import RawHtml from 'discourse/widgets/raw-html';

function 1(api) {...
function 2(api) {...

```

Will this affect performance?  
I look at common approaches…  
Just logically, you can make a dozen plugins or replace them all in one.

---

_[View the full topic](https://meta.discourse.org/t/the-overall-optimization-plugins/67732)._
