PHPackages                             ivoschimani/loadscripts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ivoschimani/loadscripts

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

ivoschimani/loadscripts
=======================

Allows optimized loading of JS and CSS.

v0.2.9(9mo ago)1164LGPL-3.0+PHPPHP ^8.1

Since Feb 4Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/ivoschimani/loadscripts)[ Packagist](https://packagist.org/packages/ivoschimani/loadscripts)[ RSS](/packages/ivoschimani-loadscripts/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (2)Versions (24)Used By (0)

Contao LoadScripts
==================

[](#contao-loadscripts)

Introduction
------------

[](#introduction)

The Module allows to specify which CSS / JS should be loaded in the **&lt;head&gt;**-Tag and which at the end of the **&lt;body&gt;**-Tag. The CSS and JS Files will be combined and Minimized. The CSS Files in the **&lt;head&gt;**-Tag will be embeded as inline Style. JS Files in the **&lt;head&gt;**-Tag smaller than 20kb will also be embeded as inline Javascript.

Usage
-----

[](#usage)

The Module adds new Fields to the Layout table where you can select your files which should be loaded in the **&lt;head&gt;**- and **&lt;body&gt;**-Tag

You could also use the **$GLOBALS** Array in your Template to load your Files.

Add your Files to the **$GLOBALS\['TL\_CSS\_HEAD'\] / $GLOBALS\['TL\_JAVASCRIPT\_HEAD'\]** Arrays to load your files in the &lt;head&gt;-Tag and the **$GLOBALS\['TL\_JAVASCRIPT'\] / $GLOBALS\['TL\_CSS'\]** Arrays to load your Files at the end of the &lt;body&gt;-Tag

If you use jQuery you could add some js code to the **$GLOBALS\['TL\_JAVASCRIPT\_QUEUE'\]** Array. The Code will be executed after jQuery is Loaded.

The Module will work with the most custom extensions if you change the Templates. In many cases you have to add the inline JS Functions without the &lt;script&gt;-Tag to the **$GLOBALS\['TL\_JAVASCRIPT\_QUEUE'\]** Array.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance58

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~46 days

Recently: every ~94 days

Total

22

Last Release

270d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb9b0fff8958e8865a4e75b51455c2380f87343a6b129b80ca678dfe483501c3?d=identicon)[ivo@schimani.de](/maintainers/ivo@schimani.de)

---

Top Contributors

[![ivoschimani](https://avatars.githubusercontent.com/u/33956537?v=4)](https://github.com/ivoschimani "ivoschimani (17 commits)")

---

Tags

contaoloadscripts

### Embed Badge

![Health badge](/badges/ivoschimani-loadscripts/health.svg)

```
[![Health](https://phpackages.com/badges/ivoschimani-loadscripts/health.svg)](https://phpackages.com/packages/ivoschimani-loadscripts)
```

###  Alternatives

[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[codefog/contao-haste

haste extension for Contao Open Source CMS

46676.5k171](/packages/codefog-contao-haste)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3189.0k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3177.0k6](/packages/terminal42-contao-node)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18156.0k10](/packages/terminal42-contao-folderpage)[contao-bootstrap/core

Core of Contao Bootstrap extension

1791.6k24](/packages/contao-bootstrap-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
