Skip to content

Instantly share code, notes, and snippets.

@robflaherty
Created October 10, 2014 20:59
Show Gist options
  • Select an option

  • Save robflaherty/c3c1d09b6388067e822c to your computer and use it in GitHub Desktop.

Select an option

Save robflaherty/c3c1d09b6388067e822c to your computer and use it in GitHub Desktop.
if (document.documentElement.clientWidth < 600) {
jQuery.scrollDepth();
}
@tannerchung

Copy link
Copy Markdown

I don't see an option on your site for user timing or pixel depth on the riveted site.. using the syntax I see on the scroll depth site however. Does this look right? Are there other options that are unlisted on riveted? And thanks for the scrollDepth snippet .. makes a lot more sense.

<script>
    riveted.init({
        reportInterval: 10,
        userTiming: false,
        pixelDepth: false
    });
</script>

@robflaherty

Copy link
Copy Markdown
Author

Pixel Depth and User Timing options are only for the scroll depth plugin. Sorry for the confusion. For Riveted, the only option you need is reportInterval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment