question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Instruction on how to use this in browser

See original GitHub issue

This my be considered an issue from perspective of someone who is not nodejs ninja and don’t have intentions on using this polyfill in non-browser environment .

What should one do to have browser code built from this? From what I can see&understand this is for node use.

I have cloned this version locally, and run npm install - which gave me performance-now.

But still I don’t get this.

I do care specifically about this polyfill since it is only one I could find that implements callback queueing - fantastic job.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
CMTegnercommented, Sep 17, 2016

When loading the library via a <script> tag the API is available on window.raf. To automatically polyfill window.requestAnimationFrame and window.cancelAnimationFrame you can invoke window.raf.polyfill(). This is documented here.

0reactions
CMTegnercommented, Sep 19, 2016

I added these instructions to the README. Thanks for bringing this up @milosdjakonovic!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internet Basics: Using a Web Browser - GCFGlobal
Using a web browser is vital for doing various things online. Understand how to use a web browser in this free lesson.
Read more >
Activate JavaScript in your browser - Google AdSense Help
Activate JavaScript in Google Chrome · Open Chrome on your computer. · Click More and then Settings. · Click Security and Privacy. ·...
Read more >
How To Use Google Chrome - Step By Step Tutorial - YouTube
How To Use Google Chrome - Tips And TricksIf you are new to Chrome, you should pay close a... ... Your browser can't...
Read more >
Web Browser Instructions
drop-down menu will appear. Select Find. A search window will appear on the upper right of the browser window. Enter the VIN and...
Read more >
How to enable JavaScript in your browser and why
Internet Explorer. On web browser menu click "Tools" icon and select "Internet Options". In the "Internet Options" window select the "Security" tab. On...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found