Liquid global_asset_url: How to Get Global Asset URL in Shopify

Along with the popularity of the Shopify, the Shopify team has been developed the shops with the lastest Liquid. By the multiple types of Liquid codes like objects, tags, and filters, Liquid allows online sellers to load their dynamic data. With this effective tool, the Shopify store owners will enable displaying the product’s description and images thank the Liquid objects. Moreover, the Liquid provides the filters to change the output of the Liquid objects. That is the reason why Liquid is used in many website and applications.

Liquid is such a flexible and safe language in Shopify marketplace, online sellers have more options to manipulate storefront. In their admin dashboard, the Shopify store owners can manage all the store activities. Besides, it helps the Shopify shops to have professional stores websites. Thank Liquid, online merchants can build up their code settings to have a beautiful appearance.

In this article, we are happy to introduce to Shopify sellers How to Get Global Asset URL in Shopify. By these simple guides, we hope that the Shopify store owners enable returning the URL of a global asset.

How to Get Global Asset URL in Shopify

About Global Asset URL in Shopify {#about-global-asset-url}

By permitting or denying access to a website, the URL filters are considered as the best way to control access to Internet websites. In addition, based on information which is contained in the list of URL, the users can store this list on Websense or Secure Computing URL filter. Besides, internet users enable maintaining the local URL as well as create the link for collection filters and blogs. In many URL filter outputs, you will see a question mark ? with a number appended. In Shopify’s servers, Global Asset URL which is kept in as a tool to improve the loading speed of a page.

The way to get global asset

Step 1: Input

Input

{{ 'prototype.js' | global_asset_url | script_tag }}

Step 2: Output

After entering the input, the output will be like that:

Output

<script src="//cdn.shopify.com/s/global/prototype.js?1" type="text/javascript"></script>

The following global assets are available:

{{ 'prototype.js' | global_asset_url | script_tag }}
{{ 'controls.js' | global_asset_url | script_tag }}
{{ 'dragdrop.js' | global_asset_url | script_tag }}
{{ 'effects.js' | global_asset_url | script_tag }}
{{ 'prototype/1.5/prototype.js' | global_asset_url | script_tag }}
{{ 'prototype/1.6/prototype.js' | global_asset_url | script_tag }}
{{ 'scriptaculous/1.8.2/scriptaculous.js' | global_asset_url | script_tag }}
{{ 'scriptaculous/1.8.2/builder.js' | global_asset_url | script_tag }}
{{ 'scriptaculous/1.8.2/controls.js' | global_asset_url | script_tag }}
{{ 'scriptaculous/1.8.2/dragdrop.js' | global_asset_url | script_tag }}
{{ 'scriptaculous/1.8.2/effects.js' | global_asset_url | script_tag }}
{{ 'scriptaculous/1.8.2/slider.js' | global_asset_url | script_tag }}
{{ 'scriptaculous/1.8.2/sound.js' | global_asset_url | script_tag }}
{{ 'scriptaculous/1.8.2/unittest.js' | global_asset_url | script_tag }}
{{ 'ga.js' | global_asset_url | script_tag }}
{{ 'mootools.js' | global_asset_url | script_tag }}
{{ 'lightbox.css' | global_asset_url | stylesheet_tag }}
{{ 'lightbox.js' | global_asset_url | script_tag }}
{{ 'lightbox/v1/lightbox.css' | global_asset_url | stylesheet_tag }}
{{ 'lightbox/v1/lightbox.js' | global_asset_url | script_tag }}
{{ 'lightbox/v2/lightbox.css' | global_asset_url | stylesheet_tag }}
{{ 'lightbox/v2/lightbox.js' | global_asset_url | script_tag }}
{{ 'lightbox/v2/loading.gif' | global_asset_url }}
{{ 'lightbox/v2/close.gif' | global_asset_url }}
{{ 'lightbox/v2/overlay.png' | global_asset_url }}
{{ 'lightbox/v2/zoom-lg.gif' | global_asset_url }}
{{ 'lightbox/v204/lightbox.css' | global_asset_url | stylesheet_tag }}
{{ 'lightbox/v204/lightbox.js' | global_asset_url | script_tag }}
{{ 'lightbox/v204/bullet.gif' | global_asset_url }}
{{ 'lightbox/v204/close.gif' | global_asset_url }}
{{ 'lightbox/v204/closelabel.gif' | global_asset_url }}
{{ 'lightbox/v204/donatebutton.gif' | global_asset_url }}
{{ 'lightbox/v204/downloadicon.gif' | global_asset_url }}
{{ 'lightbox/v204/loading.gif' | global_asset_url }}
{{ 'lightbox/v204/nextlabel.gif' | global_asset_url }}
{{ 'lightbox/v204/prevlabel.gif' | global_asset_url }}
{{ 'list_collection.css' | global_asset_url | stylesheet_tag }}
{{ 'search.css' | global_asset_url | stylesheet_tag }}
{{ 'textile.css' | global_asset_url | stylesheet_tag }}
{{ 'firebug/firebug.css' | global_asset_url | stylesheet_tag }}
{{ 'firebug/firebug.js' | global_asset_url | script_tag }}
{{ 'firebug/firebugx.js' | global_asset_url | script_tag }}
{{ 'firebug/firebug.html' | global_asset_url }}
{{ 'firebug/errorIcon.png' | global_asset_url }}
{{ 'firebug/infoIcon.png' | global_asset_url }}
{{ 'firebug/warningIcon.png' | global_asset_url }}

Conclusion

Liquid strip: How to Remove Whitespace tabs, spaces, and newlines, we introduced the Shopify store owners to remove the Whitespace tabs, spaces, and newlines from String both the Left, Right Sides. This article How to Remove HTML Tags from String in Shopify will bring the users simple steps to strip their HTML in their shops. This article How to Remove Whitespace tabs, spaces, and newlines in Shopify which includes simple steps for even the beginners in Shopify to remove all the unexpected spaces. In addition, the Shopify store owners can discover more these articles about Liquid URL filters such as: