`
Intrepid2012
  • 浏览: 70968 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

how to decide if the external js is loaded

阅读更多
try to figure out if the external js lib is loaded:


<script language="javascript">
var len = $('script[src="<external JS>"]').length;
if (len === 0) {
    $.getScript('<external JS>');
}
</script>
分享到:
评论

相关推荐

    How to decide whether a planar graph is regularly 3-colorable

    怎样判定一个可平面图是否可以正规三着色,徐万东,,本文提出了在任何一个可平面图G中对应每个内顶点都有一个最近邻圈子图的新概念, 提出并讨论了子图之间的三着色关联性和相容性,

    HOW TO IMPROVE YOUR BUSINESS LETTERS

    If the letter came to you, how would you respond? Be pleasant; try to turn negative statements into positive ones. 4. Say it Plainly Phrases like “in compliance with your request” and “enclosed ...

    How we decide

    The trick is to determine when to use the different parts of the brain, and to do this, we need to think harder (and smarter) about how we think.  Jonah Lehrer arms us with the tools we need, ...

    React.js Essentials

    It explains the difference between stateless and stateful React components and how to decide which one to use. Then, it guides you through the process of creating both kinds. Chapter 4, Make Your ...

    Usb Complete - Everything You Need To Develop Custom Usb Peripherals (3. edition) by Jan Axelson (2005)

    USB, however, and if so, you’ll learn how to decide which of USB’s three speeds and four transfer types are appropriate for your application. • What controller chip should my device use? Every USB ...

    How We Decide.pdf

    Over the past two decades, research in neuroscience and behavioral econom­ ics has revolutionized our understanding of human decision-...readers the information they need to make the smartest decisions

    Using LUA with Visual C++ (Introduction)

    the second one is a pointer to a user-defined reader function, the third pointer is a user-defined value that the reader function will receive, and the fourth one is a name we decide ourselves for ...

    Cloud Computing for Dummies for english

    have to decide if they want to use public (external) cloud services or if they want to have private clouds behind their firewalls. How should you architect your internal environment to support the ...

    Universal-USB-Installer

    these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the...

    2-Control.rar_control valve _decide_heater_site:www.pudn.com_val

    At the same time, it is the input variable since it is measured by a thermometer and used to decide whether to heat or not to heat. The desired temperature (20°C) is the setpoint. The state of the ...

    Field Guide to Hadoop

    If your organization is about to enter the world of big data, you not only need to decide whether Apache Hadoop is the right platform to use, but also which of its many components are best suited to ...

    Big Data SMACK: A Guide to Apache Spark, Mesos, Akka, Cassandra, and Kafka

    This book is about how to integrate full-stack open source big data architecture and how to choose the correct technology―Scala/Spark, Mesos, Akka, Cassandra, and Kafka―in every layer. Big data ...

    数位板压力测试

    • How hard is it to learn the interface and write a simple program that uses tablet input? • Can programmers of complex applications control the features they need? • Are more powerful tablet ...

    微软内部资料-SQL性能优化3

    For example, if you defer constraint checking, it is your responsibility to ensure that the database is consistent. Isolation Concurrent transactions are isolated from the updates of other incomplete...

    AngularJS Directives(PACKT,2013)

    AngularJS, propelled by Google, is quickly becoming one of the most popular JavaScript MVC frameworks available, working to invert the development paradigm and bring data-driven modularity to the web ...

    微软内部资料-SQL性能优化5

    This clustered key can be multiple column if the clustered index is composite, or is defined to be non-unique.  If the table is a heap (in other words, it has no clustered index), the bookmark is a...

    Techfocus SQL Server 2008 Migration: Evaluate the Value of a SQL Server Upgrade

    To get a handle on which SQL Server versions are available, first you need to understand some nomenclature...This whitepaper will discuss each of these reasons to help you decide if migrating is for you.

    微软内部资料-SQL性能优化2

    A 32-bit process is normally limited to addressing 2 gigabytes (GB) of memory, or 3 GB if the system was booted using the /3G boot switch even if there is more physical memory available. By leveraging...

    WizFlow网页编辑

    case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free ...

Global site tag (gtag.js) - Google Analytics