Automattic / Automattic/jetpack

Better handle podcast player dependencies

Open
#17,873 2 comments 0 reactions 0 assignees View on GitHub
[Block] Podcast Player [Focus] Performance [Pri] Normal Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

When adding a podcast player to a page, the file "components.min.js" is being enqueued.

77% percent of this file is not used, and this is a pretty big file. According to the DevTools coverage tool, more then 0.5MB of this file is not being used:
![image](https://user-images.githubusercontent.com/14274769/100005666-3a00c880-2dc1-11eb-8a6d-7efadc7d79c7.png)

It makes it the first opportunity to come up in the Lighthouse report.

Maybe there is a more efficient way for enabling the podcast player?

Contributor guide

Open the contributing guide

Research direction

Start by inspecting how the podcast player enqueues components.min.js, then use the referenced DevTools coverage result and Lighthouse report to identify the unused dependency cost. Done means proposing and implementing a more efficient loading approach for the podcast player, with its performance impact verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wordpress
Domain
frontend, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.