PHPackages                             hryvinskyi/magento2-theme-assets - 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. hryvinskyi/magento2-theme-assets

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

hryvinskyi/magento2-theme-assets
================================

Provides asset rendering functionality for scripts, stylesheets and asset path resolution

1.0.0(3mo ago)034MITPHPPHP ^8.1

Since Feb 4Pushed 3mo agoCompare

[ Source](https://github.com/hryvinskyi/magento2-theme-assets)[ Packagist](https://packagist.org/packages/hryvinskyi/magento2-theme-assets)[ RSS](/packages/hryvinskyi-magento2-theme-assets/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

ThemeAssets Magento 2 / Adobe Commerce
======================================

[](#themeassets-magento-2--adobe-commerce)

A Magento 2 module that provides asset rendering functionality for scripts, stylesheets, and asset path resolution.

Features
--------

[](#features)

- **Asset Rendering**: Render JavaScript and CSS assets with multiple loading strategies
- **Inline &amp; External**: Support for both inline and external asset rendering
- **Loading Strategies**: Sync, async, and defer loading for scripts
- **Preloading**: Resource preload hints with fetch priority support
- **Content Strategies**: Multiple fallback strategies for asset content retrieval
- **Caching**: Built-in asset caching for improved performance

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

```
composer require hryvinskyi/magento2-theme-assets
```

### Manual Installation

[](#manual-installation)

1. Create the directory `app/code/Hryvinskyi/ThemeAssets`
2. Copy the module files to the directory
3. Run the following commands:

```
bin/magento module:enable Hryvinskyi_ThemeAssets
bin/magento setup:upgrade
bin/magento cache:flush
```

Requirements
------------

[](#requirements)

- PHP ^8.1
- Magento 2.4.x
- hryvinskyi/magento2-head-tag-manager

Usage
-----

[](#usage)

### In PHTML Templates

[](#in-phtml-templates)

```
