FlowFuse / FlowFuse/website

Separating All Third-Party Scripts Included in base.njk into a Separate JavaScript File

Open
#2,334 2 comments 0 reactions 0 assignees View on GitHub
task
Dominant language
Vue
Stars
23
Forks
19
Avg merge
2d 5h
Merged PRs (30d)
146

Description

### Description

Currently, we have several third-party scripts (HubSpot, PostHog, Clickbit, etc.) directly included in the base.njk file. However, when we build the website, our bundler does not bundle them like it does for JavaScript files. Each script tag results in a separate HTTP request, contributing to slower website load speeds. To improve performance, we should consolidate all third-party scripts into a separate JavaScript file, allowing our bundler to bundle them efficiently.

### Epic/Story

_No response_

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.