Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add Yandex CDN for Russian users #5

Merged
merged 1 commit into from

3 participants

@ai
ai commented

Yandex is most popular search engine (more than Google) in Russian and exUSSR countries. They have own CDN located in Russia, so it is faster than Google.

@kenn kenn merged commit 53c5919 into kenn:master
@TheBits

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 16, 2012
  1. @ai

    Add Yandex CDN for Russian users

    ai authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +1 −0  README.md
  2. +2 −1  lib/jquery-rails-cdn.rb
View
1  README.md
@@ -57,6 +57,7 @@ Note that valid CDN symbols are:
:google_schemeless
:microsoft
:jquery
+:yandex
```
It will generate the following on production:
View
3  lib/jquery-rails-cdn.rb
@@ -10,7 +10,8 @@ module ActionViewExtensions
:google_ssl => "https://ajax.googleapis.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js",
:google_schemeless => "//ajax.googleapis.com/ajax/libs/jquery/#{JQUERY_VERSION}/jquery.min.js",
:microsoft => "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-#{JQUERY_VERSION}.min.js",
- :jquery => "http://code.jquery.com/jquery-#{JQUERY_VERSION}.min.js"
+ :jquery => "http://code.jquery.com/jquery-#{JQUERY_VERSION}.min.js",
+ :yandex => "http://yandex.st/jquery/#{JQUERY_VERSION}/jquery.js"
}
def jquery_url(name, options = {})
Something went wrong with that request. Please try again.