ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call tns() is there a way faster than another ?

BobSquarePants opened this issue · comments

Hi everyone,

Is between the tree listed way on https://github.com/ganlanyuan/tiny-slider#usage

<script src="/tiny-slider.js"></script>

or

// yourScript.js
import { tns } from "./node_modules/tiny-slider/src/tiny-slider"

or

<script type="module">
  import {tns} from './src/tiny-slider.js';

  var slider = tns({
    container: '.my-slider',
    items: 3,
    slideBy: 'page',
    autoplay: true
  });
  </script>

is there one faster than another ? (FireFox related)