Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ab-interchange

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ab-interchange - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

11

AB-interchange.js

@@ -88,3 +88,2 @@ !(function(name, definition) {

if (match) {
console.log(this.currentPath, path);
this._replace(path);

@@ -124,5 +123,9 @@ } else {

else {
$.get(path, function(response) {
that.$element.html(response).trigger(trigger);
});
if (path === "") {
that.$element.empty();
} else {
$.get(path, function(response) {
that.$element.html(response).trigger(trigger);
});
}
}

@@ -129,0 +132,0 @@ }

{
"name": "ab-interchange",
"version": "1.1.0",
"version": "1.1.1",
"description": "AB-interchange: While responsive image loading is not really an easy task even today, here is a solution to manage conditional (based on breakpoints) loading of img, background-image or even HTML content.",

@@ -5,0 +5,0 @@ "main": "ab-interchange.js",

@@ -56,3 +56,3 @@ # AB-interchange

```
<div data-ab-interchange="[small-content.html, small], [medium-content.html, medium], [large-content.html.jpg, large]"></div>
```
<div data-ab-interchange="[small-content.html, small], [medium-content.html, medium], [large-content.html, large]"></div>
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc