2.0.1 • Published 6 years ago

@schibstedspain/html-tagger v2.0.1

Weekly downloads
65
License
ISC
Repository
github
Last release
6 years ago

html-tagger

Tool to tagger the HTML of your webpage from a service.

Use:

  • Load the script with the tagger tagger.umd.min.js. That script expose the global object window.SCM.Tagger
  • Load After the first script other script with the tag´s object. And call to window.SCM.Tagger() example

Performance:

  • It uses requestIdleCallback if supported, in order to only tag when the browser is idle. If not available, it tries to use requestAnimationFrame in order to tag elements smoothly.
  • It uses MutationObserver if supported in order to only tag elements when these are added.

Debugger:

You can use this command in the console to check the tagging:

console.table(
  Array.from(document.querySelectorAll('[data-tealium-tag]'))
)
2.0.1

6 years ago

2.0.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago