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

criticaljs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

criticaljs

CriticalJS is a JavaScript library which enables you to improve the perceived performance of your site

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

CriticalJS

Build Status

CriticalJS is a JavaScript library which enables you to improve the perceived performance of your site. It does this by deferring the loading of your main JavaScript and catching any user interactions so that they can be later handled by the main JavaScript once it loads.

Getting setup

The simplest way to use CriticalJS is to include the critical.js file in your page and then specify a data attribute with the location of the main JavaScript that is to be defered.

<script src="criticaljs.min.js" data-deferredjs="main.js"></script>

Browser Support

We are currently targetting supporting Firefox, Android Browser, Chrome, Safari, Opera and Internet Explorer 9+.

Contributing

We have put together a useful guide on how you can contribute to CriticalJS in the CONTRIBUTE.md file in this repo.

Keywords

FAQs

Package last updated on 29 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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