<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/basset-is-an-alternative-way-to-load-css-js-assets-npkc4qddw" -->

---
title: Basset is an alternative way to load CSS &amp; JS assets
description: Basset is a better asset helper for Laravel that allows you to load CSS and JS assets directly from the URL. It removes the limitations of the traditional...
canonical: https://daily.dev/posts/basset-is-an-alternative-way-to-load-css-js-assets-npkc4qddw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Basset is an alternative way to load CSS &amp; JS assets | daily.dev
og:description: Basset is a better asset helper for Laravel that allows you to load CSS and JS assets directly from the URL. It removes the limitations of the traditional...
og:url: https://daily.dev/posts/basset-is-an-alternative-way-to-load-css-js-assets-npkc4qddw
og:image: https://api.daily.dev/og/posts/npKC4qDDw.png
og:image:alt: Basset is an alternative way to load CSS &amp; JS assets
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Basset is an alternative way to load CSS & JS assets

**[Laravel News](https://daily.dev/sources/ln)** · 3 min read · 73 upvotes · 1 comments

## Summary

Basset is a better asset helper for Laravel that allows you to load CSS and JS assets directly from the URL. It removes the limitations of the traditional asset() function and provides features such as downloading assets from CDNs, loading vendor and non-public assets, preventing double-loading of assets, and improving performance by using HTTP/2.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/basset>

## Community discussion

Top comments from developers on daily.dev.

**@kuchinpotta** · 0 upvotes

> My today's topic to work, Thanks😁

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#laravel](https://daily.dev/tags/laravel), [#npm](https://daily.dev/tags/npm), [#deno](https://daily.dev/tags/deno)

[View this post on daily.dev](https://daily.dev/posts/basset-is-an-alternative-way-to-load-css-js-assets-npkc4qddw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Basset is an alternative way to load CSS & JS assets","url":"https://daily.dev/posts/basset-is-an-alternative-way-to-load-css-js-assets-npkc4qddw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/basset-is-an-alternative-way-to-load-css-js-assets-npkc4qddw"},"datePublished":"2024-04-17T13:11:55.429Z","dateModified":"2024-05-09T08:43:33.910Z","description":"Basset is a better asset helper for Laravel that allows you to load CSS and JS assets directly from the URL. It removes the limitations of the traditional...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a19d18ca06807a26c4b2695e7f3bfb8c?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a19d18ca06807a26c4b2695e7f3bfb8c?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Laravel News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Laravel News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ln","url":"https://daily.dev/sources/ln"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/basset-is-an-alternative-way-to-load-css-js-assets-npkc4qddw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":73},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"javascript,laravel,npm,deno","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Laravel News","item":"https://daily.dev/sources/ln"},{"@type":"ListItem","position":3,"name":"Basset is an alternative way to load CSS & JS assets"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/basset-is-an-alternative-way-to-load-css-js-assets-npkc4qddw","comment":[{"@type":"Comment","text":"My today’s topic to work, Thanks😁","datePublished":"2024-05-13T02:04:31.979Z","url":"https://daily.dev/posts/npKC4qDDw#c-UIczPgvBo","author":{"@type":"Person","name":"Krunal Chandan","url":"https://daily.dev/kuchinpotta","image":"https://media.daily.dev/image/upload/s--N6Zf0_Zi--/f_auto/v1715068631/avatars/avatar_M0Hq9Tc2wArPQRUgDAPa5"}}]}
```

