项目作者: Niyko

项目描述 :
Most simple way to load JS and CSS resources asynchronously and boost page insight speed
高级语言: JavaScript
项目地址: git://github.com/Niyko/AsyncBee.git
创建时间: 2019-10-09T17:49:17Z
项目社区:https://github.com/Niyko/AsyncBee

开源协议:GNU General Public License v3.0

下载


AsyncBee logo
Most simple way to load Javascript, images and CSS resources asynchronously and boost page insight speed and increase the website’s SEO scores. Just adding the AsyncBee.js file and changing the attributes will boost the Google’s page insight speed from any score to 95 ~ 100. AsyncBee delays the resource to load up and synchronously loads the Javascript and other resource is right order without making any dependency errors. AsyncBee is very flexible and comes with a prebuild loading animation which can be fully customized.

Get started

1) Add Jquery to the website

You can use the Jquery CDN :

  1. <script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>

2) Download and install AsyncBee

First of all we need to download AsyncBee.js file from this GitHub repository or if you don’t want to include files in your project, you may use it from CDN :

  1. <script src='https://cdn.jsdelivr.net/gh/Niyko/AsyncBee/AsyncBee.js'></script>

3) Include AsyncBee File To Website

After that we need to include AsyncBee.js files to our website/app. In your html file:

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. ...
  5. <script src="path/to/AsyncBee.js"></script>
  6. </head>
  7. <body>
  8. ...
  9. </body>
  10. </html>

4) Replace all your src and href attribute

Replace all your src attribute in