Load the plugin only in pages or articles that use it to increase the speed of the site

Open
#67 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php, wordpress
Domain
performance

Research direction

Start by locating where the plugin registers or enqueues its assets, then read how it determines whether a page or article uses the plugin. The issue does not name files or tests, so first trace that entry point and check for existing usage-detection tests. Done means the plugin loads only on pages or articles that use it, without slowing unrelated pages.

Written by the indexing model from the issue text.

Description

enhancement good first issue Please Test! To-Do

It would be nice and practical to add the option to load the plugin only where it’s needed, since it still consumes loading resources even on pages where it isn’t used. As shown in the attachment, it’s being loaded first on my website and slows down the overall speed.
Image
Thank you for your attention and fantastic plugin.
Best regards

Dominant language
PHP
Stars
29
Forks
12
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenGIS/waymark-wp

All issues in OpenGIS/waymark-wp

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.