An open API service indexing awesome lists of open source software.

https://github.com/pelock/q2a-use-cdn

A small, but useful plugin for Question2Answer v1.8 (and v1.7) system to enable the CDN (Content Delivery Network) usage for JQuery
https://github.com/pelock/q2a-use-cdn

cdn content-delivery-network jquery php plugin q2a q2a-plugin question2answer question2answer-plugin

Last synced: 25 days ago
JSON representation

A small, but useful plugin for Question2Answer v1.8 (and v1.7) system to enable the CDN (Content Delivery Network) usage for JQuery

Awesome Lists containing this project

README

          

# Question2Answer - Use JQuery CDN Plugin
A small, but useful plugin for Question2Answer v1.8 (and v1.7) system to enable the CDN (Content Delivery Network) usage for JQuery.

## CDN? What it does?

It's simple. It replaces default JavaScript JQuery source from the local file to the hosted CDN.

### Before - JQuery script without CDN

![JQuery script without CDN](screenshots/question2answer-jquery-without-cdn.png "JQuery script without CDN")

### After - JQuery script with Google CDN

![JQuery script with Google CDN](screenshots/question2answer-jquery-with-google-cdn.png "JQuery script with Google CDN")

## How to use it?

Go to the **Admin Panel** -> **Plugins** and enable it. That's it!

![Question2Answer Use CDN Plugin](screenshots/question2answer-use-cdn-plugin-usage.png "Question2Answer Use CDN Plugin")

## Why to use CDN?

1. To make your site faster (check it in Google Lighthouse) it's better for SEO. Google CDN is really fast to load.
2. To save your server bandwidth. JQuery minimized is around 30kb. Multiply that by number of the visitors to your site.
3. To use cached copies of the same scripts used by millions of people.
3. You can always make sure you're using the latest version of the scripts (you can specify your own CDN source).

## Changes

* v1.0 - Initial release

Bartosz Wójcik

* Visit my site at — https://www.pelock.com
* Twitter — https://twitter.com/PELock
* GitHub — https://github.com/PELock