Lazy-loading Google Maps

The easiest way would be unconditionally loading a script file and map instances at once. But that would be a very very wrong way. The right way is to lazy-load the script file and map instances one by one.

New York

New York is a state in the Northeastern and Mid-Atlantic regions of the United States. New York is the 27th-most extensive, the third-most populous, and the seventh-most densely populated of the 50 United States. New York is bordered by New Jersey and Pennsylvania to the south and by Connecticut, Massachusetts, and Vermont to the east.

London

London is the capital city of England and the United Kingdom. It is the most populous city in the United Kingdom with a metropolitan area of over 13 million inhabitants. Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.

Shanghai

Shanghai is the largest Chinese city by population and the largest city proper by population in the world. It is one of the four direct-controlled municipalities of the People's Republic of China, with a population of more than 24 million as of 2013. It is a global financial center, and a transport hub with the world's busiest container port.

Paris

Paris is the capital and most populous city of France. Situated on the Seine River, in the north of the country, it is at the heart of the Île-de-France region, also known as the région parisienne (Paris Region in English). The city of Paris has a population of 2,249,975 inhabitants (January 2011), while its metropolitan area is one of the largest population centres in Europe, with 12,292,895 inhabitants at the January 2011 census.

Tokyo

Tokyo officially Tokyo Metropolis is one of the 47 prefectures of Japan. Tokyo is the capital of Japan, the center of the Greater Tokyo Area, and the most populous metropolitan area in the world. It is the seat of the Japanese government and the Imperial Palace, and the home of the Japanese Imperial Family. Tokyo is in the Kantō region on the southeastern side of the main island Honshu and includes the Izu Islands and Ogasawara Islands.

Mexico City

Mexico City is the federal district (distrito federal), capital of Mexico and seat of the federal powers of the union. It is a federal entity within Mexico which is not part of any one of the 31 Mexican states but belongs to the federation as a whole. Mexico City is the country's largest city as well as its most important political, cultural, educational and financial center.

Sydney

Sydney is the state capital of New South Wales and the most populous city in Australia and Oceania. It is located on Australia's south-east coast along the Tasman Sea and surrounding one of the world's largest natural harbours. Residents are together known as "Sydneysiders" and constitute the most multicultural city in Australia and one of the most multicultural cities in the world.

Cape Town

Cape Town is the second-most populous city in South Africa, after Johannesburg, and the provincial capital and primate city of the Western Cape. As the seat of the National Parliament, it is also the legislative capital of the country. It forms part of the City of Cape Town metropolitan municipality.

Berlin

Berlin is the capital of Germany and one of the 16 states of Germany. With a population of 3.6 million people, Berlin is Germany's largest city. It is the second most populous city proper and the seventh most populous urban area in the European Union. Located in northeastern Germany on the River Spree, it is the center of the Berlin-Brandenburg Metropolitan Region, which has about 4.5 million residents from over 184 nations.

Delhi

Delhi, also known as the National Capital Territory of India is the capital territory of India. Such is the nature of urban expansion in Delhi that its growth has expanded beyond the NCT to incorporate towns in neighbouring states and at its largest extent can count a population of about 25 million residents as of 2014, and is the largest urban agglomeration in India by land area and population. It is also the 4th most populous city on the planet.