• Hi

    I have developed a list of custom plugins which will increase over time. They may reach over 1,000 in next couple of years. So, these many plugins will slow down the website over time.

    Each plugin is a custom code of HTML, CSS, and Javascript, which will be used once or max twice in just one post. That means one plugin for 1st post, 2nd plugin for 2nd post, and so on.

    So, how can I include these custom codes in ‘Add New Post’ section of WordPress so that the code is loaded only when that post is opened? Having a plugin will make it load on each page load.

    Please guide me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Having 1000 plugins, assuming they’re all well written, should not slow your site down.

    But if these are just HTML and CSS and JS, can you explain what ONE of them does? Maybe we can help you find a solution that isn’t hard-coding in all that.

    Thread Starter princejindal8

    (@princejindal8)

    Hi Ipstenu

    I am planning to make calculators which will do different functions. Some are finance calculators, some would be related to health, business, etc. So, in each broad category, there will be couple of hundreds of calculators.

    Of course, some of these calculators would share the code with each other, but I am planning to copy-paste the entire code on each of the pages.

    Hence, there will be 1000s of calculators over time.

    Thread Starter princejindal8

    (@princejindal8)

    Hi

    Is there any option available for the same instead of creating a plugin so that the entire code of all the plugins in not loaded on each load? It will create hinderance with the increase in traffic (if it happens).

    I have created plugins by having external CSS and Javascript files.

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