Move Javascripts to footer and use drupal_add_js

Created on 2 March 2012, over 12 years ago
Updated 2 March 2023, over 1 year ago

Currently, the sharethis js code is appened to each button wherever they appear on the page.

On a listing page with 50 items, this means the same javascript page is included 50 times, when in fact none of the code loaded is tied to any single instance on the page.

Moving the inclusion of the code to a single instance in the footer of the page will greatly increase the perceived load time of the page by allowing page content to load before inserting the share this button.

I've created a patch will I will add to this issue.

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States aacraig

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024