litespeedtech / litespeedtech/lscache_wp

guest mode Exclusion of JS Not Working

Open
#594 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
257
Forks
123
PR merge metrics
No merged PRs in 30d

Description

hello iam trying to exclude a specific javascript file from guest mode optimization as i can see that while guest mode on javascript files are combined in a file and they are are no longer executed because of this happens for search engine crawlers i have inspected it............... so problem is most part of my website are fetched through ajax
is there any way i can exclude specific javascript file from guest optimization only as i want them keep minified

tried below
data-no-defer="1"
removed guest mode ips and user agents
and the exclude js file from guest mode as well below is ss

![Capture](https://github.com/litespeedtech/lscache_wp/assets/73393691/a45beb9e-78f8-4089-bbff-acb267fbc703)

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the guest mode optimization path and reproduce the search-engine-crawler case described, focusing on AJAX-loaded content and the generated data-src script tags. Check how the reported exclusion settings are applied; done means the specific JavaScript remains minified, is excluded from guest-mode handling, and executes for crawlers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php, wordpress
Domain
performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.