Improve the way that JS is attached

Created on 18 October 2023, over 1 year ago
Updated 28 February 2024, about 1 year ago

Problem/Motivation

At present inline javascript is being embedded within the template responsible for rendering the Facebook post. If you have more than one Facebook post being rendered on a page the JS is being executed more than once (which is unnecessary). Ideally a library(s) should be attached.

Steps to reproduce

Proposed resolution

Use a dynamic library for the SDK to accomodate the active language. Use a library to initialise the SDK. Remove the placeholder element from the template in favour of putting the URL within the Facebook post element - this will be substituted by the SDK, but will exist in CKEditor.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia mortim07

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024