Belle-Ve Bricks

Your Imagination

The Educational Benefits of Playing with LEGO® Sets

Create Your

We help you from start to finish to create and deliver your tailor-made custom model.
Custom model
Continue

LEGO® sets have transcended the boundaries of age, culture, and geography to become one of the most beloved toys worldwide. From toddlers building their first colorful structures to adults indulging in intricate architectural models, LEGO® has something to offer everyone. 

Its unique interlocking brick system encourages creativity, collaboration, and critical thinking, making it more than a toy. It’s a tool that unlocks the imagination and fosters a love for learning and exploration.

Brief History of LEGO® in Education

The journey of LEGO® from a simple toy to an educational powerhouse is a fascinating one. Founded in 1932 by Ole Kirk Christiansen, LEGO® initially produced wooden toys. The introduction of the plastic brick in 1949 marked a turning point, and the patenting of the modern brick design in 1958 set the stage for global success. 

Recognizing the potential of LEGO® as a learning tool, educators began to incorporate it into classrooms in the 1980s. LEGO® Education was officially established in 1980, focusing on STEM (Science, Technology, Engineering, Mathematics) and later STEAM (including Arts) education. Today, LEGO® Education offers a wide range of products and solutions tailored to different age groups and educational needs, from basic brick sets to advanced robotics kits.

This article aims to delve into the multifaceted world of LEGO® as a learning tool. We will explore how LEGO® sets are not just sources of entertainment but powerful instruments that stimulate creativity, enhance cognitive development, and provide hands-on experience in various subjects. 

Whether you are a parent seeking engaging educational toys for your children, an educator looking to enrich your classroom experience, or a LEGO® enthusiast curious about its educational impact, this article aims to provide comprehensive insights and guidance. 

By understanding the philosophy, benefits, and applications of LEGO® in learning, readers will be empowered to make informed decisions and foster a more joyful and effective educational journey.

Through this introduction, we set the stage for a detailed exploration of why LEGO® sets make great learning tools, inviting readers to join us on a journey that promises to be as engaging and enlightening as the LEGO® bricks themselves.

The Educational Philosophy of LEGO®

Learning Through Play

The core philosophy of LEGO® revolves around the concept of learning through play. This approach recognizes that play is a form of entertainment and a fundamental way children explore, understand, and interact with the world around them. LEGO® sets provide a hands-on, tactile experience that encourages children to experiment, innovate, and create. 

By assembling bricks, children engage in trial and error, learning from their mistakes and celebrating their successes. This playful learning environment fosters curiosity and joy, making education an exciting adventure rather than a tedious task.

STEM and STEAM Integration

LEGO® has integrated STEM (Science, Technology, Engineering, Mathematics) and STEAM (including Arts) into its educational philosophy. Through various LEGO® Education products, children are introduced to complex subjects in an accessible and engaging manner. For example, LEGO® robotics kits allow students to build and program robots, providing a hands-on experience in coding, engineering, and mathematics. 

The inclusion of Arts in STEAM emphasizes the importance of creativity and design, aligning perfectly with LEGO®’s focus on imaginative building. By bridging the gap between arts and sciences, LEGO® ensures a well-rounded education that nurtures logical thinking and creative expression.

Building Creativity and Problem-Solving Skills

One of the most remarkable aspects of LEGO® is its ability to cultivate creativity and problem-solving skills. Unlike many toys that have a fixed structure or purpose, LEGO® sets offer endless possibilities. Children are free to follow instructions or venture into their imaginative creations. 

This freedom to explore and innovate encourages children to think outside the box, develop original ideas, and find unique solutions to challenges. Building with LEGO® inherently involves planning, strategizing, and troubleshooting, honing essential problem-solving skills applicable to life and education.

Benefits of LEGO® for Different Age Groups

Toddlers and LEGO® DUPLO

LEGO® DUPLO sets are designed for the youngest builders, typically aged 1.5 to 5 years. These sets feature larger bricks that are easy to handle and safe for small hands. The simplicity of LEGO® DUPLO allows toddlers to engage in creative play, developing fundamental skills such as hand-eye coordination, fine motor skills, and spatial awareness. 

Themes often include animals, vehicles, and basic structures, encouraging children to explore and recognize common objects. By building and playing with LEGO® DUPLO, toddlers begin their educational journey with a strong creativity, curiosity, and cognitive development foundation.

School-Age Children and Classic LEGO® Sets

Children’s ability to understand and manipulate more complex structures increases as they grow. Classic LEGO® sets cater to school-age children, offering a wide variety of themes and challenges that align with their interests and abilities. From recreating scenes from favorite movies to building intricate vehicles and landscapes, these sets provide endless opportunities for imaginative play. 

Following instructions, interpreting diagrams, and assembling pieces enhance critical thinking, attention to detail, and perseverance. Collaborative building projects also promote teamwork and communication skills. Classic LEGO® sets are entertaining and educational, fostering a lifelong love for learning and creativity.

Teenagers and Advanced LEGO® Kits

For teenagers and more advanced builders, LEGO® offers specialized kits that delve into complex engineering, programming, and design concepts. Products like LEGO® Technic and LEGO® Mindstorms provide a sophisticated building experience, incorporating gears, motors, and sensors. 

These sets challenge teenagers to think like engineers, programmers, and designers, applying theoretical knowledge practically and engagingly. Building advanced LEGO® kits enhances problem-solving skills, logical reasoning, and technological literacy. It also provides a platform for teenagers to explore potential career paths in STEM fields, nurturing their passions and talents in a way that aligns with the demands of the modern world.

LEGO® in the Classroom

LEGO® Education Solutions

LEGO® Education offers a wide array of solutions designed to enhance learning in the classroom. These products range from basic brick sets to advanced robotics kits, all tailored to align with educational standards and curricula. LEGO® Education solutions are not confined to STEM subjects; they also encompass literacy, social studies, and arts, providing a holistic approach to learning. 

Teachers are equipped with lesson plans, guides, and support to integrate LEGO® into their teaching methods seamlessly. By transforming abstract concepts into tangible, hands-on experiences, LEGO® Education makes learning more engaging, interactive, and effective.

Case Studies and Success Stories

The impact of LEGO® in the classroom is not just theoretical; numerous case studies and success stories from schools around the world back it. Educators have reported significant improvements in student engagement, creativity, collaboration, and problem-solving skills. 

For instance, schools implementing LEGO® Mindstorms have seen students excel in coding and robotics, often participating and succeeding in regional and national competitions. Special needs education has also benefited from LEGO® therapy, helping children with autism and other developmental disorders improve social interaction and communication. 

These real-world examples demonstrate the transformative power of LEGO® in education, inspiring confidence in both teachers and students.

Collaborative Learning Experiences

One of the standout features of LEGO® in the classroom is its ability to foster collaborative learning experiences. Building with LEGO® is often a communal activity where students work together to achieve a common goal. Whether assembling a complex structure or programming a robot, collaboration is key. Students learn to communicate their ideas, listen to others, negotiate, and compromise. 

They also learn to appreciate diverse perspectives and talents, recognizing that everyone contributes uniquely. Collaborative learning with LEGO® not only enhances social skills and creates a positive and inclusive classroom environment where every student feels valued and empowered.

Choosing the Right LEGO® Set

Age-Appropriate Sets

Selecting the right LEGO® set starts with considering the age of the builder. LEGO® offers a wide range of products designed to suit different age groups, each providing an appropriate level of complexity and challenge. For toddlers, LEGO® DUPLO sets with larger bricks and simple designs are ideal. 

School-age children may enjoy classic LEGO® sets that align with their growing abilities, while teenagers and adults may be drawn to advanced LEGO® Technic or architecture sets. Choosing an age-appropriate set ensures a satisfying and rewarding building experience that enhances skills without causing frustration.

Themed Sets for Specific Interests

LEGO® recognizes that builders have diverse interests and passions and caters to these by offering themed sets. From superheroes and space exploration to historical landmarks and nature, there’s a LEGO® set for every interest. If a child is fascinated by dinosaurs, a LEGO® Jurassic World set might be the perfect gift. 

For car enthusiasts, LEGO® Speed Champions offers detailed replicas of famous cars. By selecting a set that aligns with the builder’s interests, you provide entertainment and encourage deeper engagement and learning in a subject they love.

LEGO® Sets for Special Needs

LEGO®’s commitment to inclusivity extends to providing sets that cater to special needs. For children with sensory sensitivities, LEGO® offers sets with calming colors and tactile experiences. LEGO® therapy has also been recognized as an effective tool for children with autism, promoting social interaction, communication, and emotional regulation. 

There are also sets designed to enhance fine motor skills and concentration for children with developmental challenges. By considering the unique needs and abilities of the builder, you can find a LEGO® set that provides therapeutic benefits and a positive building experience.

Recommended LEGO® Sets

LEGO® Vincent van Gogh – The Starry Night 21333

Set Number: 21333
Theme: Ideas
Year Released: 2022
No. Pieces: 2316
RRP: £149.99 / $169.99 / €169.99

The LEGO® Vincent van Gogh – The Starry Night set allows builders to recreate one of Vincent van Gogh’s most beloved paintings, “The Starry Night.” Comprising 2316 pieces, this unique 3D LEGO® brick homage captures the original masterpiece’s stunning details and rich colors, including a van Gogh minifigure. 

LEGO® Great Pyramid of Giza 21058

Set Number: 21058
Theme: Architecture
Year Released: 2022
No. Pieces: 1476
RRP: £119.99 / $129.99 / €139.99

The LEGO® Great Pyramid of Giza set transports builders back to Ancient Egypt, allowing them to construct one of the Seven Wonders of the Ancient World. Part of the LEGO® Architecture theme, this set represents the Great Pyramid at the height of its glory, encased in highly polished blocks of white limestone. 

LEGO® Boutique Hotel 10297

Set Number: 10297
Theme: Icons
Year Released: 2022
No. Pieces: 3066
RRP: £199.99 / $229.99 / €229.99

The LEGO® Boutique Hotel is a tribute to turn-of-the-century European architecture and celebrates 15 years of LEGO® Modular Buildings. Designed as a corner structure with two sides of street-facing detail, this set is filled with hidden gems and intricate details. The glamorous design and colorful characters make it a standout addition to any LEGO® collection. 

LEGO® 90 Years of Play 11021

Set Number: 11021
Theme: Classic
Year Released: 2022
No. Pieces: 1100
RRP: £44.99 / $49.99 / €49.99

This set celebrates the rich history of LEGO® and its impact on generations of builders. It’s a tribute to creativity and learning, inspiring children to think outside the box and develop problem-solving skills.

LEGO® The Globe 21330

Set Number: 21330
Theme: Creator Expert
Year Released: 2022
No. Pieces: 2585
RRP: £199.99 / $229.99 / €229.99

The Globe is a complex and educational building that teaches children about geography and the world’s continents. It encourages spatial thinking and offers a hands-on way to explore our planet.

LEGO® Birdhouse 31143

Set Number: 31143
Theme: Creator
Year Released: 2023
No. Pieces: 476
RRP: £24.99 / $29.99 / €29.99

This set offers a creative way to explore nature and bird habitats. Children can learn about different species and their living environments, fostering an appreciation for wildlife.

LEGO® Lion Knights’ Castle 10305

Set Number: 10305
Theme: Icons
Year Released: 2022
No. Pieces: 4514
RRP: £344.99 / $399.99 / €399.99

This classic set encourages imaginative play and storytelling. Children can learn about medieval history and architecture while developing their construction skills.

LEGO® Moana’s Wayfinding Boat 43210

Set Number: 43210
Theme: Disney
Year Released: 2023
No. Pieces: 321
RRP: £29.99 / $34.99 / €34.99

This set helps children explore Polynesian culture and navigation techniques. It’s fun to engage with storytelling and develop fine motor skills.

LEGO® McLaren Formula 1™ Race Car 42141

Set Number: 42141
Theme: Technic
Year Released: 2022
No. Pieces: 1432
RRP: £169.99 / $199.99 / €199.99

This set offers a realistic building experience, teaching children about automotive engineering and mechanics. It fosters an understanding of how real-world vehicles function and promotes STEM learning.

LEGO® and Technology

Coding with LEGO®

In today’s digital age, coding has become an essential skill, and LEGO® has embraced this by offering products that introduce children to programming. LEGO® Education’s coding platforms, such as WeDo and Mindstorms, allow children to build robots and other creations and program them using simple drag-and-drop coding interfaces. 

These platforms are designed to be intuitive and engaging, making coding accessible even to young learners. By integrating coding with hands-on building, LEGO® provides a unique and interactive way to develop computational thinking, logical reasoning, and problem-solving skills.

Robotic Kits and Interactive Learning

LEGO®’s robotic kits take technology integration to the next level, offering interactive learning experiences that combine engineering, programming, and creativity. LEGO® Mindstorms, for example, provides an expansive robotic kit that enables children to build various robots, each with different functions and capabilities. 

These robots can be programmed to perform tasks, respond to sensors, and even interact with their environment. Such interactive learning experiences deepen understanding of STEM concepts and foster innovation, collaboration, and critical thinking. The hands-on nature of LEGO® robotic kits ensures that learning is not just theoretical but practical and fun.

Future Trends in LEGO® Technology

LEGO® continues to innovate and explore new frontiers in technology. Augmented Reality (AR) is where LEGO® has made strides, offering products like LEGO® Hidden Side that combine physical building with virtual gameplay. Virtual Reality (VR) and Artificial Intelligence (AI) are other areas where LEGO® is likely to expand, providing even more immersive and personalized learning experiences. 

Sustainability is also a focus, with LEGO® committed to producing all products and packaging with sustainable materials by 2030. These future trends reflect LEGO®’s dedication to staying at the forefront of technology, continually enhancing its products’ educational value and entertainment.

Parent and Educator Resources

Guides and Tutorials

LEGO® offers a wealth of resources to support parents and educators in maximizing the educational value of LEGO® sets. Comprehensive guides and tutorials are available online, providing step-by-step instructions, lesson plans, and teaching strategies. 

These resources are designed to align with educational standards and cover various subjects, from mathematics and science to literacy and art. Whether you’re a parent looking to engage your child in creative play or an educator integrating LEGO® into your classroom, these guides and tutorials offer valuable insights and guidance to enhance the learning experience.

Community Support and Forums

The LEGO® community is a vibrant and collaborative space where parents, educators, and LEGO® enthusiasts can connect, share, and learn from each other. Online forums and social media groups provide platforms for discussions, idea exchanges, and problem-solving. 

Whether seeking advice on choosing the right set, sharing a successful classroom project, or finding inspiration for new building challenges, community support enhances the LEGO® experience. Local LEGO® clubs and events also offer opportunities for in-person connections, fostering a sense of belonging and collaboration among LEGO® lovers of all ages.

Official LEGO® Shop Recommendations

The Official LEGO® Shop is not just a place to purchase LEGO® sets; it’s also a valuable resource for recommendations and expert advice. The shop’s website features detailed descriptions, age guidelines, and thematic categorizations for each set, helping parents and educators make informed choices. 

Special sections highlight educational sets, exclusive products, and gift guides tailored to different interests and occasions. Customer reviews and ratings provide real-world insights into the popularity and suitability of various sets. By utilizing the Official LEGO® Shop’s resources, parents and educators can find the perfect LEGO® products to meet their specific needs and goals.

More Info

How to Start with LEGO®?

Starting with LEGO® is as simple as choosing a set that aligns with the builder’s age, interests, and abilities. For young children, LEGO® DUPLO sets are a great introduction, while classic LEGO® sets offer a wide range of themes for school-age children. Guides and tutorials available on the LEGO® website can provide additional support and inspiration. Remember, LEGO® building is all about creativity and exploration, so there’s no right or wrong way to begin!

Can LEGO® be Used in Schools?

Absolutely! LEGO® Education offers a variety of products and solutions specifically designed for classroom use. These sets align with educational standards and cover subjects such as STEM, literacy, and arts. Many schools around the world have successfully integrated LEGO® into their curricula, enhancing engagement, creativity, and hands-on learning. Teachers can access lesson plans, guides, and support through LEGO® Education’s resources.

What Are the Best LEGO® Sets for Learning?

The best LEGO® sets for learning depend on the builder’s age, interests, and educational goals. LEGO® Education sets are tailored for classroom learning, covering various subjects and age groups. For coding and robotics, LEGO® Mindstorms is a popular choice. Themed sets that align with a child’s interests can also provide valuable learning experiences. The Official LEGO® Shop offers recommendations and categorizes sets by educational value, making it easier to find the perfect fit.

How Can Parents and Educators Collaborate with LEGO®?

LEGO® encourages collaboration between parents and educators through community forums, local LEGO® clubs, and educational partnerships. Sharing ideas, lesson plans, and success stories fosters a collaborative environment where parents and educators can learn and grow. LEGO® also offers professional development opportunities for educators, enhancing their ability to integrate LEGO® into teaching.

Are There LEGO® Sets for Special Needs Children?

Yes, LEGO® offers sets that cater to special needs, including sensory sensitivities, developmental challenges, and therapeutic goals. LEGO® therapy has been recognized as an effective tool for children with autism and other special needs. Parents and educators can consult guides, experts, and community forums to find sets that align with the unique needs and abilities of special needs children.

How Does LEGO® Stay Up-to-Date with Educational Trends?

LEGO® stays at the forefront of educational trends through continuous research, innovation, and collaboration with educators and experts. By exploring new technologies like AR, VR, and AI and aligning products with current educational standards and methodologies, LEGO® ensures its offerings remain relevant, engaging, and valuable in a rapidly evolving educational landscape.

Can LEGO® Sets Be Integrated into Different Subjects?

Absolutely! LEGO® sets are versatile tools that can be integrated into various subjects, from mathematics and science to literature and history. LEGO® Education offers sets and lesson plans specifically designed for different subjects, while the creativity and flexibility of LEGO® bricks allow educators to design their own cross-curricular projects and activities.

Conclusion

At Belle-Ve Bricks, we understand the passion and creativity that goes into every LEGO® creation. Whether you have a specific design in mind or wish to alter an existing MOC, our team of expert designers is here to bring your vision to reality. 

Collaborating with you every step of the way, we offer customized services tailored to your needs. If you’re ready to take your LEGO® experience to the next level, contact us today, and let’s build something extraordinary together!

LEGO® sets are more than just toys; they are powerful learning tools that inspire creativity, problem-solving, and a love for engineering and design. With Belle-Ve Bricks’ customization services, the possibilities are endless. 

Our team is committed to enhancing your LEGO® experience, providing personalized designs that align with your imagination and goals. Together, we can create something truly special, fostering a deeper connection with the world of LEGO® and unlocking new avenues of exploration and learning.

<div class="badge-base LI-profile-badge" data-locale="en_US" data-size="large" data-theme="dark" data-type="HORIZONTAL" data-vanity="ferdi-vol" data-version="v1"><a class="badge-base__link LI-simple-link" href="https://www.linkedin.com/in/%E2%9C%85-ferdi-vol-corporate-gifts/?trk=profile-badge"></a></div>
/* Auto generated, hash = 5dceu9kevqjdyuy2uw1atqrsu */
//TODO: Break this file down so that we can actually unit test it.
(function(window) {
  /**
  * Renders all unrendred LinkedIn Badges on the page
  */
  window.LIRenderAll = function () {
    var CALLBACK_NAME     = 'LIBadgeCallback', //Must match callback on helpers.js
        BADGE_NAMES       = '.LI-profile-badge, .LI-entity-badge',
        // TODO -- tracking param for other badge types
        TRACKING_PARAM    = 'profile-badge',
        responsesReceived = 0, //Keeps track of number of responses recieved for proper cleanup when finished
        expectedResponses = 0, //Keeps track of number of responses to expect
        scripts           = [ ], //Keeps track of scripts added for proper cleanup when finished
        childScripts      = {}, //Keeps track of child scripts to render
        badges            = Array.prototype.slice.call(document.querySelectorAll(BADGE_NAMES));

    var i, len, badge, rendered;
    for (i = 0, len = badges.length;  i < len; i++) {
      badge    = badges[i];
      rendered =  badge.getAttribute('data-rendered');
      if (!rendered) {
        expectedResponses++;
        badge.setAttribute('data-rendered', true);
        renderBadge(badge);
      }
    }

    function isCNDomain() {
      if (typeof window !== "undefined") {
        var hostName = window.location && window.location.hostname ||  '';
        return (/linkedin(-ei)?.cn$/).test(hostName);
      }

      return false;
    }

    function generateUrl(isEI) {
      var domainPrefix = isEI ? 'https://badges.linkedin-ei' : 'https://badges.linkedin';
      if (isCNDomain()) {
        return domainPrefix + ".cn/";
      }

      return domainPrefix + ".com/";
    }

    function getBadgeKeyQueryParams(badge) {
      return Array.prototype.slice.call(badge.attributes).filter(function (attr) {
        return attr.name.lastIndexOf('data-key-', 0) !== -1;
      }).map(function (attr) {
        // Most browsers automatically lowercase the attribute name when its being read
        // We are calling lowercase on it again to ensure consistency for any browsers that are lagging behind.
        return encodeURIComponent(attr.name.replace('data-', '').toLowerCase()) + '=' + encodeURIComponent(attr.value);
      });
    }

    /*
    * Renders a single badge on the page
    * @param badge: div element of badge to render
    */
    function renderBadge(badge) {
      var size       = badge.getAttribute('data-size'),
          locale     = badge.getAttribute('data-locale'),
          type       = badge.getAttribute('data-type'),
          theme      = badge.getAttribute('data-theme'),
          vanity     = badge.getAttribute('data-vanity'),
          version    = badge.getAttribute('data-version'),
          isEI       = badge.hasAttribute('data-ei'),
          entity     = badge.getAttribute('data-entity'),
          isCreatePage = badge.hasAttribute('data-iscreate'),
          uid        = Math.round(1000000 * Math.random()),
          baseUrl = generateUrl(isEI),
          queryParams = [
            'locale=' + encodeURIComponent(locale),
            'badgetype=' + encodeURIComponent(type),
            'badgetheme=' + encodeURIComponent(theme),
            'uid=' + encodeURIComponent(uid),
            'version=' + encodeURIComponent(version)
          ],
          url;

      if (version === 'v2') {
        baseUrl += 'view';
        queryParams.push('badgesize=' + encodeURIComponent(size));
        queryParams.push('entity=' + encodeURIComponent(entity));
        queryParams = queryParams.concat(getBadgeKeyQueryParams(badge));
      } else {
        baseUrl += 'profile';
        queryParams.push('maxsize=' + encodeURIComponent(size));
        queryParams.push('trk=' + encodeURIComponent(TRACKING_PARAM));
        queryParams.push('vanityname=' + encodeURIComponent(vanity));
      }

      if (isCreatePage) {
        queryParams.push('fromCreate=true');
      }

      url = baseUrl + '?' + queryParams.join('&');
      badge.setAttribute('data-uid' , uid);
      jsonp(url); //Calls responseHandler when done
    }

    /**
    * Handles a response from the server. Finds badge matching badgeUid and inserts badgeHtml there
    * @param badgeHtml: String representing contents of the badge
    * @param badgeUid: UID of the badge to target
    **/
    function responseHandler(badgeHtml, badgeUid) {
      responsesReceived ++;

      var i, badge, uid, isCreate;
      var defaultWidth = 330 // max possible width
      var defaultHeight = 300 // max possible height

      for (i = 0, len = badges.length; i < len; i++) {
        badge = badges[i];
        // isCreate needed to prevent reloading artdeco script tag
        isCreate = badge.getAttribute('data-iscreate');
        uid   = parseInt(badge.getAttribute('data-uid'), 10);
        if (uid === badgeUid) {
          var badgeMarkup = `<body>${badgeHtml}</body>`
          var iframe = document.createElement('iframe');
          iframe.onload = function() {
            var iframeBody = iframe.contentWindow.document.body;
            // 5 px buffer to avoid the badge border being cut off.
            iframe.setAttribute('height', (iframeBody.scrollHeight || defaultHeight) + 5);
            iframe.setAttribute('width', (iframeBody.scrollWidth || defaultWidth) + 5);
          };
          iframe.setAttribute('frameBorder', '0');
          iframe.style.display = 'block';
          badge.appendChild(iframe);
          iframe.contentWindow.document.open();
          iframe.contentWindow.document.write(badgeMarkup);
          iframe.contentWindow.document.close();
          replaceScriptTags(badge, isCreate);
        }
      }
      tryClean();
    }

  // These functions are needed because badge markup is added via innerHtml property which does not run script tags
  function replaceScriptTags(node, isCreate) {
    if (shouldReplaceNode(node, isCreate)) {
      node.parentNode.replaceChild(cloneScriptNode(node), node);
      childScripts[node.src] = true;
    } else {
      var i = 0,
          children = node.childNodes;
      while (i < children.length) {
        replaceScriptTags(children[i++], isCreate);
      }
    }
    return node;
  }

  function shouldReplaceNode(node, isCreate) {
    return isScriptNode(node) && !childScripts[node.src] && (!isCreate || (isCreate && !node.getAttribute('data-isartdeco')));
  }

  function isScriptNode(node) {
    return node.tagName === 'SCRIPT';
  }

  function cloneScriptNode(node){
    var script  = document.createElement("script");
    for( var i = node.attributes.length-1; i >= 0; i-- ) {
      script.setAttribute( node.attributes[i].name, node.attributes[i].value );
    }
    return script;
  }

    // Gets all incoming responses
    window[CALLBACK_NAME] = responseHandler;

    /**
    * Tries to clean added tags
    **/
    function tryClean() {
      //Clean up after all requests are done..
      //Accounts for people including script more than once
      var done = (responsesReceived >= expectedResponses && expectedResponses > 0) || responsesReceived >= badges.length;
      if (done) {
        delete window[CALLBACK_NAME];

        // remove all script tags
        scripts.map(function(script){
          document.body.removeChild(script);
        });

      }
    }

    /*
    * Makes Jsonp request, responses handles by CALLBACK_NAME
    * @param url String: url of server to make request to
    */
    function jsonp(url) {
      var script = document.createElement('script');
      script.src = url;
      scripts.push(script);
      document.body.appendChild(script);
    }
  };

  if (document.readyState === 'complete') {
    window.LIRenderAll();
  } else {
    window.addEventListener('load', window.LIRenderAll, false);
  }

})(window);
Popular Posts