Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Qlik Sense

You're reading from   Mastering Qlik Sense Expert techniques on self-service data analytics to create enterprise ready Business Intelligence solutions

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781783554027
Length 514 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Martin Mahler Martin Mahler
Author Profile Icon Martin Mahler
Martin Mahler
Juan Ignacio Vitantonio Juan Ignacio Vitantonio
Author Profile Icon Juan Ignacio Vitantonio
Juan Ignacio Vitantonio
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Qlik Sense Self-Service Model FREE CHAPTER 2. Transitioning from QlikView to Qlik Sense 3. Security Rules: Attribute Based Access Control 4. Master Items in Qlik Sense 5. Qlik Sense on the Cloud 6. Qlik Sense Data Modeling 7. Best Practices for Loading Data in Qlik Sense 8. Advanced Scripting 9. Advanced Expressions in Qlik Sense 10. Overview of Qlik Sense APIs 11. Working with the Qlik Dev Hub 12. Coding in Qlik Sense 13. Creating Extensions in Qlik Sense 14. Integrating QS in Websites via Mashups 15. Other Books You May Enjoy

RequireJS

As already highlighted, JavaScript libraries play an integral role in web app development. While they can be loaded in the HTML one by one, when you start using multiple libraries, this can become a little bit tricky when they become dependent on each other.

RequireJS solves this elegantly by providing a library to load JavaScript files in a modular way, which improves the speed and the quality of the code.

So far we were loading JavaScript files by referencing them using a dedicated <script src="library"></script> tag.

A typical structure of loading files using RequireJS looks as follows:

define( ["./jquery",
          "css!./css/layout.css"
        ],
        function($) {
        //jQuery was loaded and can be reference using $ in the code.
//a layout CSS files was loaded as well. As it's using the prefix CSS!...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime