Belle-Ve Bricks

Building Brands, Brick by Brick.

Guide to LEGO® Customization: Elevate Your LEGO® Experience

Create Your

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

You’ve caught the building bug, haven’t you? You’ve likely started amassing various sets, each offering its unique building experience. But what if we told you that the sets you own are just the tip of the iceberg? That’s right; we’re talking about LEGO® customization, the art of modifying and designing your own unique LEGO® builds.

For many collectors, customization is the next logical step after mastering several off-the-shelf sets. It’s an opportunity to not just build but to create by taking the limitless possibilities of LEGO® to a realm of personalized innovation.

If you’ve never customized a LEGO® set, the process might seem daunting. You might have concerns like, “Where do I start?” or “What can I change?” That’s where this guide comes in. Tailored for newcomers and avid collectors, this resource aims to answer all your questions and provide step-by-step advice for embarking on your LEGO® customization journey.

So whether you’re looking to make slight modifications to an existing set or dreaming of designing an original masterpiece, you’re in the right place. Get ready to unlock a whole new world of LEGO® building limited only by your imagination.

Why Customize Your LEGO® Sets?

Personal Expression

Ever looked at a LEGO® set and thought, “It’s almost perfect, but if only it had…”? Customization is your gateway to making that thought a reality. Altering existing designs or creating entirely new ones allows you to inject your own personality and creative vision into each build. You have the power to make each LEGO® project a reflection of you.

Skill Development

Building from a standard LEGO® set is a skill in itself, but customization takes it a step further. As you begin to work on your own designs or modify existing ones, you’re thrust into a world that requires critical thinking and a keen eye for detail. The more you customize, the better you understand how different elements can fit together for more complex, intricate designs.

Themed Collections

Many LEGO® enthusiasts are collectors at heart. You might be someone who enjoys building within a specific theme, like medieval castles, modern architecture, or iconic film scenes. Customizing allows you to tweak or entirely recreate sets to align perfectly with the theme you’re passionate about. This creates a cohesive and visually stunning collection that tells a unique story.

Special Occasions

Imagine giving a friend or loved one a LEGO® set customized just for them. Whether it’s for a birthday, anniversary, or another significant life event, a custom LEGO® set makes for a memorable, heartfelt gift. You can tailor the build to reflect the recipient’s interests, commemorate a special moment, or even include personalized features that make the set one-of-a-kind.

Customization enhances the inherent joy and fulfillment of working with LEGO® sets. The benefits are compelling, whether for personal enjoyment, skill-building, or as unique gifts. By opting for customization, you’re choosing a path that’s filled with endless creative opportunities.

Benefits of LEGO® Customization Over Regular Sets

Uniqueness

Let’s face it: part of the allure of LEGO® is having a creation you can proudly display. But how much cooler would it be if your model was one-of-a-kind? Customization provides an avenue for this unique expression. When you customize, you make a model that’s uniquely yours, different from any store-bought set or another builder’s project.

Skill Enhancement

While assembling a LEGO® set from a box will hone your building skills, customization pushes you to new heights. As you work through the complexities of your own designs or modifications, you’ll learn advanced techniques and approaches. This quickens your skill development, making you a more adept and versatile builder.

Greater Satisfaction

There’s a certain joy in completing any LEGO® set, but custom projects offer an unparalleled sense of satisfaction. The challenges are greater, but so are the rewards. When you finally place that last brick, you’ll feel a level of accomplishment that far surpasses what you feel with standard sets. You didn’t just build; you created.

Thematic Consistency

Are you a fan of a particular era, movie series, or architectural style? Customizing your LEGO® sets allows you to maintain a consistent theme throughout your collection. This enhances the visual appeal and adds a level of coherence and storytelling to your displays.

Types of LEGO® Customization

Color Customization

You’re in luck if you’ve ever wished that your LEGO® model sported a different color scheme. One of the simplest yet most effective forms of customization is swapping out bricks for those of different colors. Whether you want your spaceship to be gold instead of grey or your castle to have red bricks rather than beige, color customization is your go-to option. This allows you to achieve visual harmony or make your models more eye-catching.

Structural Changes

This type of customization involves altering the basic framework or design of an existing LEGO® set. Structural changes can range from simple modifications, like adding extra rooms to a building, to more complex redesigns, such as converting a stationary model into a foldable one. Here, you can let your architectural prowess shine, redefining a set to align with your vision or desired functionality.

Functional Enhancements

If you want to add a bit of action to your static models, this is the type of customization for you. Incorporating functional elements like motors, gears, or even lights can bring your LEGO® creations to life. Imagine a Ferris wheel that turns or a lighthouse with a functioning light; the possibilities are endless.

Popular LEGO® Themes for Customization and Why They’re Chosen

Star Wars™

Why It’s Popular for Customization

The Star Wars™ universe is expansive, offering countless opportunities to expand upon official sets. Fans often want to create scenes or ships not available in existing sets.

LEGO® Millennium Falcon™ Holiday Diorama 40658

Set Number: 40658
Theme: Star Wars™
Year Released: 2023
No. Pieces: 282
RRP: £25.99 / $29.99 / €29.99

This set is a festive twist on the iconic Millennium Falcon™, incorporating holiday decorations and elements. Perfect for Star Wars™ and holiday enthusiasts alike, it features intricate details that bring the season’s joy to a galaxy far, far away. The diorama setup allows for a unique display option, a must-have for Star Wars™ collectors looking to add seasonal flair to their collection.

LEGO® Coruscant Guard Gunship™ 75354

Set Number: 75354
Theme: Star Wars™
Year Released: 2023
No. Pieces: 1083
RRP: £129.99 / $139.99 / €149.99

The Coruscant Guard Gunship is a must-have for fans who love recreating epic scenes from the Star Wars™ universe. Featuring multiple opening compartments and minifigures, this set offers endless play possibilities. Its intricate design provides a satisfying building experience. The set also comes with exclusive Coruscant Guard minifigures, making it a unique addition to any collection.

LEGO® Yavin 4 Rebel Base 75365

Set Number: 75365
Theme: Star Wars™
Year Released: 2023
No. Pieces: 1066
RRP: £149.99 / $169.99 / €169.99

Immerse yourself in the Star Wars™ saga by building the Yavin 4 Rebel Base. Featuring iconic characters and settings, this set brings key scenes to life. With its high piece count, the building process is engaging and rewarding. The set also includes a variety of minifigures, providing ample play and display options.

LEGO® New Republic E-Wing™ vs. Shin Hati’s Starfighter™ 75364

Set Number: 75364
Theme: Star Wars™
Year Released: 2023
No. Pieces: 1056
RRP: £94.99 / $109.99 / €104.99

This set offers the ultimate space dogfight experience between the New Republic E-Wing and Shin Hati’s Starfighter. It features various weapons and details, it’s perfect for epic battles. Both ships are designed with attention to detail for an authentic look. It’s a great addition to any Star Wars™ collection, offering hours of imaginative play.

City

Why It’s Popular for Customization

The LEGO® City theme provides a versatile backdrop for custom builds. From adding details to existing structures to creating an entirely new building, the possibilities are endless.

LEGO® Passenger Airplane 60367

Set Number: 60367
Theme: City
Year Released: 2023
No. Pieces: 913
RRP: £89.99 / $119.99 / €99.99

Take to the skies with the LEGO® Passenger Airplane from the City series. This set offers an intricate build, featuring an operational cockpit and seating for minifigures. It provides kids and collectors with a taste of aviation adventure. With additional airport-related accessories, it serves as a comprehensive set for aviation enthusiasts.

LEGO® Ski and Climbing Center 60366

Set Number: 60366
Theme: City
Year Released: 2023
No. Pieces: 1045
RRP: £94.99 / $119.99 / €104.99

Hit the slopes with the LEGO® Ski and Climbing Center. This set provides a winter wonderland of building opportunities featuring skiing equipment, a climbing wall, and more. It offers a diverse range of play experiences for kids. For collectors, it’s a seasonally appropriate addition that brings winter fun.

LEGO® Car Wash 60362

Set Number: 60362
Theme: City
Year Released: 2023
No. Pieces: 243
RRP: £17.99 / $32.99 / €19.99

Clean up with the LEGO® Car Wash set. Designed with interactive features like rotating brushes and water jets, this set offers plenty of imaginative play. It’s a fun build that fits perfectly into any LEGO® City layout. This set is a win-win, from the building experience to the role-play opportunities.

Technic™

Why It’s Popular for Customization

Technic™ sets are known for their mechanical features. Customizers often incorporate motors and gears to create more complex, functional models.

LEGO® John Deere 948L-II Skidder 42157

Set Number: 42157
Theme: Technic™
Year Released: 2023
No. Pieces: 1492
RRP: £169.99 / $199.99 / €189.99

Explore the world of heavy machinery with the John Deere 948L-II Skidder. This Technic™ set offers a detailed build featuring realistic functions like steering and lifting mechanisms. It’s a perfect set for those fascinated by engineering and construction. The completed model is not only an engaging build but also a striking display piece.

LEGO® NASCAR® Next Gen Chevrolet Camaro ZL1 42153

Set Number: 42153
Theme: Technic™
Year Released: 2023
No. Pieces: 672
RRP: £44.99 / $49.99 / €49.99

Speed into action with the NASCAR® Next Gen Chevrolet Camaro ZL1. This Speed Champions set captures the essence of motor racing, complete with branding and racing decals. It offers a thrilling build for car enthusiasts, young and old. The set also includes a minifigure complete with a racing suit, adding to the play value.

LEGO® Monster Jam™ Dragon™ 42149

Set Number: 42149
Theme: Technic™
Year Released: 2023
No. Pieces: 217
RRP: £17.99 / $19.99 / €19.99

Unleash the beast with the Monster Jam™ Dragon™ set. Designed for action, this Technic™ set features a working suspension and a jaw that opens and closes. This build offers both a challenging construction experience and high-octane play opportunities. It’s a standout set for fans of monster truck rallies.

LEGO® Airbus H175 Rescue Helicopter 42145

Set Number: 42145
Theme: Technic™
Year Released: 2022
No. Pieces: 2001
RRP: £179.99 / $209.99 / €209.99

Take to the skies with the Airbus H175 Rescue Helicopter. This highly detailed Technic™ set offers a variety of working features like spinning rotor blades and a winch. The set provides an engaging and educational building experience. The finished model serves as an eye-catching display piece and offers lots of play potential.

Creator Expert

Why It’s Popular for Customization

These sets often serve as a canvas for advanced customizations. They usually feature detailed buildings and vehicles that can be modified to fit specific themes or personal preferences.

LEGO® Succulents 10309

Set Number: 10309
Theme: ICONS
Year Released: 2022
No. Pieces: 771
RRP: £44.99 / $49.99 / €49.99

Add some green to your space with LEGO® Succulents. This Botanical Collection set offers a relaxing build, resulting in maintenance-free plants. Ideal for both plant lovers and those with a green thumb, it’s a charming addition to any room. The set also makes for a great gift, bringing a touch of nature indoors.

LEGO® Boutique Hotel 10297

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

Step into luxury with the LEGO® Boutique Hotel from the Creator Expert series. This set offers a detailed build featuring multiple rooms and amenities. It’s perfect for those who love architecture and interior design. The modular design allows easy customization, making it a versatile addition to any LEGO® city.

LEGO® Real Madrid – Santiago Bernabéu Stadium 10299

Set Number: 10299
Theme: ICONS
Year Released: 2022
No. Pieces: 5876
RRP: £344.99 / $399.99 / €399.99

Celebrate the world of sports with the LEGO® Real Madrid – Santiago Bernabéu Stadium. This set is a tribute to one of the most iconic stadiums in soccer history. It features detailed stands, the pitch, and more, capturing the essence of the real structure. It is a must-have for sports enthusiasts and collectors alike.

LEGO® London Bus 40220

Set Number: 40220
Theme: Creator Expert
Year Released: 2016
No. Pieces: 118
RRP: $9.99

Take a trip down memory lane with the iconic LEGO® London Bus. This Creator Expert set provides an authentic and detailed building experience. It features multiple levels, authentic colors, and decals, offering a true-to-life model. It’s a nostalgic set for those fond of this British cultural icon.

Getting Started with Expert Support and Community Engagement

Professional Services

If you’re serious about LEGO® customization, teaming up with professionals can offer unparalleled benefits. Expert teams like Belle-Ve Bricks provide personalized consultation and design services. They’ll work with you to translate your ideas into feasible designs, saving you time and avoiding common pitfalls. Plus, their expertise ensures that the final product will meet high-quality standards.

Benefits of Professional Help

  • Guided Execution: Professionals guide you through the customization process, ensuring each step is executed correctly.
  • Quality Assurance: With experts involved, you can be confident that the result will be a durable, well-designed model.
  • Time Savings: Having a team to help means your project gets completed faster, allowing you to enjoy your custom model sooner.
  • Innovative Solutions: Professionals often bring new ideas to the table that can make your custom project even better than initially envisioned.

Joining an Online Community

Customizing LEGO® sets becomes even more rewarding when you’re part of a community that shares your passion. Online forums and social media groups offer a platform to showcase your work, get constructive feedback, and find inspiration.

Advantages of Community Involvement

  • Shared Resources: From design tips to parts recommendations, community members often share invaluable resources that can aid your customization journey.
  • Inspiration and Ideas: Seeing other custom projects can spark your creativity, giving you new ideas for your own builds.
  • Feedback Loop: Posting your designs online allows for constructive criticism, helping you improve and refine your customization skills.
  • Networking: These platforms provide an opportunity to connect with like-minded individuals, and who knows, you might even find a collaborator for your next big project!

In conclusion, leveraging both professional services and community resources can provide a robust support system as you delve into the exciting world of LEGO® customization.

Tools and Resources for LEGO® Customization

When you’re diving into the world of LEGO® customization, having the right tools and resources at your disposal can make all the difference. Software tools designed for LEGO® enthusiasts can streamline the design process, reduce errors, and elevate your customization experience. Here’s a rundown of how each type of tool can be beneficial.

Design Software

How it Helps

Design software like LEGO® Digital Designer or Stud.io allows you to create virtual models of your custom sets. You can test different designs, color schemes, and even mechanical features right on your computer.

Why It’s Great

  • Error Minimization: By testing digitally first, you avoid costly mistakes during the actual build.
  • Resource Management: Knowing exactly what bricks you’ll need in advance helps you manage your inventory effectively.
  • Complex Builds: Virtual models help you tackle complex projects by allowing you to visualize the steps in advance.

Parts Catalogs

How it Helps

Online parts catalogs help you find the exact pieces you need for your customization projects. Websites like Bricklink offer extensive databases of LEGO® parts, both common and rare.

Why It’s Great

  • Variety: Access to a wide range of parts that may not be available in standard sets.
  • Convenience: Easily search and order parts, making the building process more streamlined.
  • Rare Finds: These catalogs often list rare or retired pieces that can make your custom build truly unique.

Instruction Generators

How it Helps

Instruction generator software can convert your custom design into a set of easy-to-follow building instructions.

Why It’s Great

  • Ease of Use: This makes building easier, especially for complex models.
  • Shareability: Generate instructions to share your custom designs with the LEGO® community.
  • Replication: Create multiple copies of your custom design easily by following your generated instructions.

Forums and Online Communities

How it Helps

As discussed earlier, being part of an online LEGO® community gives you access to shared resources, feedback, and inspiration.

Why It’s Great

  • Peer Support: Gain valuable insights and tips from experienced customizers.
  • Inspiration: Browse other custom projects for new ideas and approaches.
  • Networking: Connect with like-minded enthusiasts who can offer guidance or collaboration opportunities.

The right tools and resources can significantly enhance your LEGO® customization experience. From specialized software to online catalogs and communities, each plays a crucial role in making your custom-building journey more enjoyable and successful.

More Info

What is LEGO® Customization?

LEGO® customization involves altering or creating unique LEGO® models. This can range from simple color swaps to complex modifications, including the addition of new structural elements or even motors.

How Does LEGO® Customization Enhance My Experience?

Customizing sets allows for personal expression, skill development, and the creation of unique, thematic collections. It can also be a great way to make special gifts for loved ones.

What Tools Do I Need for LEGO® Customization?

Various software tools can help visualize your ideas before you start building. Traditional tools like tweezers and brick separators can also be useful.

Can I Customize Any LEGO® Set?

Yes, any LEGO® set can be customized, although some themes and models might lend themselves more readily to customization due to their complexity or design.

What are Popular Themes for Customization?

Popular themes for customization include Star Wars™, City, and Technic™, among others. These themes offer a wide range of possibilities for creative alterations.

How Do I Start Customizing My LEGO® Sets?

Begin by brainstorming what changes you’d like to make. Sketching your ideas and using design software can also help. Finally, decide whether you’ll be doing the customization yourself or seeking professional help.

Is LEGO® Customization Time-Consuming?

The time it takes can vary widely depending on the complexity of the project. Simple changes may take only a few minutes, while more complex customizations could take hours or even days.

Where Can I Find Customization Ideas?

Online communities, social media, and even LEGO® conventions are excellent sources of inspiration. You can also consult with professional services like Belle-Ve Bricks for expert advice.

Is Customization Reversible?

In most cases, yes. Customization often involves rearranging or adding bricks, which can typically be undone. However, some methods, like painting or gluing, are permanent.

Ready to Take Your LEGO® Customization to the Next Level? Choose Belle-Ve Bricks!

If you’ve been inspired by this comprehensive guide and you’re ready to dive into the captivating world of LEGO® customization, we’re here to help. At Belle-Ve Bricks, we specialize in turning your dream projects into reality. Whether you have a specific design in mind or you’re looking to enhance an existing MOC, our team of expert designers works hand-in-hand with you to bring your unique visions to life. Don’t just build, create with Belle-Ve Bricks.

Conclusion

Embarking on the journey of LEGO® customization opens up a world of endless possibilities. From expressing your personal style to honing your skills and joining a community of passionate builders, the rewards are manifold. And if you ever feel like you need that extra push or professional touch, remember, we at Belle-Ve Bricks are always here to help you make your LEGO® dreams come true. Happy building!

<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