Development

Bad map file for jQuery 1.9.1 in the jQuery CDN

Jquery Blog - Fri, 08/31/2018 - 01:15

Quite a while back, Mike Taylor pointed out that the jQuery CDN has a minified copy of jQuery 1.9.1 with an incorrect map file reference. Basically, it refers to the map for jQuery 1.11.1, and that’s just wrong. If you are trying to debug a site that uses the minified jQuery 1.9.1 file, dev tools will get very confused and make a hard job even harder.

You might think that we could just edit the https://code.jquery.com/jquery-1.9.1.min.js file to point to the correct map file, which does exist as https://code.jquery.com/jquery-1.9.1.min.map. There are at least two problems with doing that. The first is that the file is heavily cached across the internet, since it’s been assumed for years that it will never change once the release occurs. Even if we edited the file, both the JavaScript and map file might never actually update at the point where they’re being used.

A second problem is even more serious. We’ve been advocating that developers use the script’s integrity attribute to ensure that the file you are including has not been modified since you originally wrote the script tag. If we modify the contents of the file this attribute will be wrong and the page will no longer include the file. This is likely to completely break the page! Given the age of jQuery 1.9.1 it is possible that many of the pages including this file are not being actively maintained. Thus, we can’t seriously consider changing the JavaScript file in any way, not even one byte.

The least disruptive option is to remove the jquery.min.map file that the jQuery 1.9.1 minified file references. It does not affect whether jQuery runs correctly for the visitors of a site. It only has the effect of disabling the source map. Because of these pitfalls of including the sourceMappingURL map reference in CDN JavaScript files that are often copied elsewhere, we no longer include it.

If you need to debug a site using one of these minified files, it is possible to manually associate a map file in Chrome. Open the minified source file, right click over the area of the minified source, and select “Add source map…”.

The incorrect jquery.min.map file has been removed from the jQuery CDN. We expect that there won’t be any observable change from removing this file, other than restoring sanity to debugging a site that uses jQuery 1.9.1. The jQuery 1.11.1 minified file does not reference its map, so it will continue to work fine and you can associate a map file as mentioned above.

Because caches are so aggressive on CDNs and across the internet, it’s possible that you may still see this map file for a while. If you see some unusual behavior that you think is related to the missing jquery.min.map file you can open a ticket on the CDN issue tracker.

Categories: Development

Everything You’ve Ever Wanted To Know About Spices

Microsoft Kitchen - Tue, 07/31/2018 - 02:00
Without spices and herbs our foods would be very bland. How much should you use? How do you rehydrate them? When should they be added to food when cooking? You’ll learn the answer to all these questions and more. Because spices are a natural food rather than a chemical, they can be added to any […]

Tips For Using Canned Foods

Microsoft Kitchen - Sun, 07/29/2018 - 02:00
When you are short on time, canned goods are a great help in getting food on the table. Dress them up with spices, herbs and other seasonings to enhance flavors and give them more pizzazz. Add more vegetables or pieces of leftover meats. One of the great things about canned food is that you can […]

How to Use Different Kinds of Cream

Microsoft Kitchen - Fri, 07/27/2018 - 02:00
TYPES OF CREAM There are a number of different kinds of cream and they have different uses. The following are those that are usually found in supermarkets, listed in the order of fat content. Single or Light This cream has the lowest percentage of fat and has many uses. Half and Half This cream is […]

Eggplant – The Garden Egg

Microsoft Kitchen - Tue, 07/24/2018 - 02:00
Eggplants (called an aubergine in some places) were named in the 18th century by farmers who thought they looked like goose eggs. In some places they still resemble the shape and size of goose or hen eggs. To cook an eggplant, wash and cut off the ends. Use a stainless steel knife, as other knives […]

Food Names And Terms

Microsoft Kitchen - Sat, 07/21/2018 - 02:00
If you don’t know some of the food names and terms that you come across on the Internet, this list may help you. There are many more, and we’ll be adding as we go along. You may be surprised with some of them. I always thought “antipasto” had something to do with pasta! AMANDINE is […]

Diet Meal Plans

Microsoft Kitchen - Tue, 07/17/2018 - 02:00
The sheer number of diet meal plans on television and in print media can make the would-be-dieter’s head spin. Which diet is right for me? Will I like the foods? Is there a support system? Can I afford this program? How about nutrition? These are just a few of the issues that dieters face. Don’t […]

Weight Loss Foods

Microsoft Kitchen - Sun, 07/15/2018 - 02:00
Are you aware some foods are considered weight loss foods because they promote fat burning and increase metabolism?  If you are in a weight loss slump, burn more calories with foods that can help get you over the hump and on the road to your target weight.  Many of these foods do double duty since […]

Food Lovers Diet

Microsoft Kitchen - Fri, 07/13/2018 - 02:00
Hmmm, a food lover’s diet.  Does that mean you can eat anything you like and blame that growing waistline on it?  Do you find yourself daydreaming about a delicious meal?  Do you eat to love and love to eat?  I mean, who doesn’t love to eat?  You just might be a food lover! Let’s face […]

“Protein” Bars

Microsoft Kitchen - Tue, 07/10/2018 - 02:00
These are so easy to make… and what a fabulous replacement for their high sugar boxed enemies! Thank you to Diane, who was a client of mine last January, for sending along this recipe! 1.5 c uncooked oats 1/2 c dried fruit (I used cranberries) 1/2 c chocolate chips or carob chips 1/2 c liquid […]

6 Cheese Facts And Tips – What You Should Know

Microsoft Kitchen - Sat, 07/07/2018 - 02:00
USING When you take cheese out of the refrigerator to use it in a recipe, it can be kept on the counter up to an hour, but put it back as soon as possible. The heat from a warm kitchen will soften the cheese, and the change in texture could make a difference in your […]

Honey Chipotle Turkey Meatballs

Microsoft Kitchen - Wed, 07/04/2018 - 02:00
I cannot wait to try these, they are such a great change from the normal heavy meat ball.  So many different options on how to use these as well!  You could also use this marinade on chicken or fish. Ingredients- Meatballs: ground turkey breast 1/2 yellow onion diced 2 garlic cloves, minced salt/pepper Mix all […]

Crisp Apple Pie

Microsoft Kitchen - Sun, 07/01/2018 - 02:00
Almost done:) Ingredients: Crisp Topping: 1/2 cup walnuts, chopped 3 tbsp ghee or butter, melted 2 tbsp raw honey salt 1 cup plain rolled oats 1/2 cup coconut or almond flour Pie Filling: 3 large honeycrisp apples (organic if possible, may need 4 since organic are smaller) 2 tbsp ghee or butter, melted 3 tbsp […]

Gluten Free Chocolate & Vanilla Marble Cake

Microsoft Kitchen - Thu, 06/28/2018 - 02:00
Last but not least….dessert:) I know the tradition is pie (which we do), but I have been dying to post this recipe that I adapted a few years ago from Fine Cooking. It is AMAZING. Keep in mind…just because I am posting this– a healthier version of dessert, does not mean you can eat the […]

Asparagus Coconut Chicken

Microsoft Kitchen - Mon, 06/25/2018 - 02:00
Ingredients: (double triple quadruple if needed!) 1 large chicken breast 1/3 cup almond meal/flour or coconut flour 3 tbsp. sweetened shredded coconut 1/2 tsp. garlic powder Salt & pepper, to taste 1/2 tsp. minced garlic, 1 clove 16 asparagus spears 1 large egg white Method: Preheat oven to 375 degrees F. Coat a skillet with […]

Grilled Mango & Real Food Challenge!

Microsoft Kitchen - Fri, 06/22/2018 - 02:00
Grilled Mangos with Jalepenos Memorial Day is not only an important American holiday but the beginning of grill season! This is an awesome side to any dish. Ingredients: 3 Mangos, peeled and sliced into flat pieces 2 jalepenos, sliced Cilantro, chopped 1 lime 1/2 cup plain green yogurt mixed with 2tbsp coconut milk (regular milk […]

Anti-Depression Foods: Omega-3 Foods List

Microsoft Kitchen - Tue, 06/19/2018 - 02:00
While it may surprise some that a “fat” would be suggested as an important food in preventing depression, it certainly is. Our bodies regularly need three types of nutrients: fats (or lipids), proteins and carbohydrates. There is substantial evidence to indicate that Omega-3 fatty acids serve to enhance the membranes of brain cells. Studies have […]

Anti-Depression Foods: Protein List

Microsoft Kitchen - Sun, 06/17/2018 - 02:00
High protein foods provide amino acids that enable the brain to function in a non-depressive state. A shortage of protein in the diet can increase likelihood of experiencing depression. Of course, the good news is that there’s an easy fix: eat a healthy diet with plenty of protein. This can vary, but for many of […]

Tomato Basil Soup

Microsoft Kitchen - Wed, 06/13/2018 - 02:00
I felt a little inspired by some cooler weather this week to post an end of summer/fall friendly recipe! Ingredients: (this makes enough for a family of four to eat twice or more) 3lbs tomatoes, sliced, just get close to 3lbs! 1 yellow onion, chopped 3 garlic cloves, pressed 1 red pepper, chopped 1/4 tsp […]

Creamy Mexican Grilled Chicken

Microsoft Kitchen - Sun, 06/10/2018 - 02:00
Make sure you get the grill master of the house- chicken can be tough to get right! This creamy marinade will help keep it from drying out. Ingredients: 1 cup full fat Greek yogurt 1 cup chopped cilantro 2tbsp fresh lemon juice (about 1 large lemon squeezed with a press) 3 garlic cloves, minced 1 […]
Syndicate content

eXTReMe Tracker