This fish tacos recipe is bright and flavorful, paired with a zesty seasoning, fresh slaw, and simple sauce! It’s perfect for an easy weeknight meal.

Tacos are always a dinnertime win, and these fish tacos are one of my favorites of all time. The white fish is flaky with a zingy dry rub of spices, and it’s topped with a bright tangy slaw and a creamy fish taco sauce!
I’ve been making this fish tacos recipe for years, and it never gets old: it tastes so fresh and comforting, and it takes only 30 minutes to put together! You can make them with whatever white fish you can find: I’ve tested this recipe with tilapia, cod, mahi mahi, and halibut, and they all turn out delicious!
Why You’ll Love These Tacos
- Quick weeknight dinner: This recipe comes together in just 30 minutes, perfect for busy weeknights.
- Crowd-pleasing flavors: The bright, zingy flavors and contrast of textures are absolutely delicious
- Lighter than fried versions: You’ll bake the fish instead of frying, so you get loads of flavor without heaviness
- Completely customizable: Make them as mild or spicy as you like, swap the fish type, change up the taco toppings, or adjust the sauce.
5 Star Reader Review




“These turned out delicious! The flavor of the fish goes so well with the slaw and the sauce. It’s a keeper!” -Jennifer H.
Ingredients You’ll Need
Here are the key ingredients you’ll need for these fish tacos:
- White fish filets: Tilapia, cod, mahi mahi, or halibut all work well. I typically go with tilapia because it’s affordable and easy to find.
- Seasoning blend: My mix of chili powder, cumin, smoked paprika, garlic powder, and onion powder brings big flavor to the fish.
- Shredded cabbage: I like red cabbage for color, but green cabbage works too. You can also buy pre-shredded cabbage to save time.
- Carrot: Adds sweetness and crunch. Use a julienne peeler or grater.
- Green onion or red onion: For a sharp, fresh bite.
- Fresh lime juice: Essential for that bright, tangy flavor.
- Celery salt: This adds an intrigue to the slaw.
- Tortillas: Use either flour or corn tortillas; I like the flavor of flour.
- Fish taco sauce: I’ll share several options below: you can use sour cream-based, mayo-based, or dairy-free alternatives.
- Chopped cilantro and lime wedges: For the garnish.
Tips for Choosing The Best Fish
The fish you choose makes a real difference in the final result. Here’s what I look for:
- Tilapia: It has a mild, slightly buttery flavor that absorbs the fish taco seasoning well, and it stays tender when baked. The filets are usually just the right thickness for tacos, about 1 inch, which means they cook evenly in about 10 minutes.
- Cod: The flavor is even milder than tilapia, almost sweet, with a flaky texture that’s absolutely perfect for cod fish tacos. It’s often slightly thicker than tilapia.
- Mahi mahi: It has a meatier texture and richer flavor.
- Halibut: It’s pricier, but the flavor and texture are outstanding.
For each type, try to find wild caught fish if you can. Fish that is wild caught in your country is usually a sustainable choice. There are also quality options in well-regulated farms; see Seafood Watch Consumer Guide.

How to Make This Fish Tacos Recipe
Let me walk you through the process of making these tacos. It’s simpler than you might think, and understanding the “why” behind each step will help you get perfect results every time.
- Start by preparing the fish. Pat the filets completely dry with paper towels: this is crucial for getting a nice crust on the fish. Season the fish with kosher salt first, then pat the dry rub spice mixture onto all sides of the fish.
- Bake the fish at 400°F. Place the seasoned filets on a parchment-lined baking sheet and bake for about 10 minutes (or until the fish reaches 145°F internally). I like to broil for 2 minutes to get a nice crust on top.
- Make the slaw while the fish bakes. Toss all the slaw ingredients together. Make sure to serve with a slotted spoon because it releases liquid as it sits.
- Warm your tortillas. This step is essential! If you have a gas burner you can char the tortillas directly over the flame for a few seconds per side using tongs. If you don’t have a gas stove, wrap them in damp paper towels and microwave for 30 seconds.
- Assemble and serve. Flake the fish into chunks, then pile it onto warmed tortillas and top with slaw and sauce.

Swaps & Variations
I love these fish tacos as is, but here are a few ways you can mix them up:
- Slaw variations: You can make my Easy Coleslaw for a creamy variation, or my Cilantro Lime Slaw.
- Topping variations: Add mango salsa, pineapple salsa, pico de gallo, or pickled onions as fun toppings.
- Protein: Try other proteins like Salmon Tacos, Tuna Tacos or Shrimp Tacos.
- Air fryer method: Preheat to 400°F, season the fish the same way, and cook for 8-10 minutes, flipping halfway through. The air fryer creates an even crispier exterior.
- Grilled: Try my grilled fish tacos method. It’s essentially the same recipe cooked on the grill.
- Pan-seared: Heat a cast iron skillet with a bit of olive oil over medium-high heat. Cook the seasoned fish for 3 to 4 minutes per side until it develops a golden crust.

Sauce Ideas
Once you’ve made your baked fish and quick slaw, all you need is the sauce! There are lots of ideas of great sauces to use. Here are my favorite sauces for these quick fish tacos:
- Fish Taco Sauce: This sauce makes fish tacos taste incredible! Lime, garlic and hot sauce are the ideal compliment for flaky fish.
- Cilantro Lime Crema or Cilantro Lime Ranch: You’ll want to bathe in these sauces! They’re full of flavor and easy to make.
- Chipotle Sauce: This easy dairy free sauce is zesty, smoky and creamy: perfect for tacos and burritos!

Sides That Pair Well
Once you’ve made these epic fish tacos, you’ll need something to serve with them! For weeknight meals, I usually opt for fast and easy side dishes like canned refried beans. But for a dinner party, I’ll make more side dishes to complete the meal. Here are a few ideas of sides to go with tacos:
- Refried Beans: Many canned refried beans have great flavor right out of the can, or you can stir in some salt, cumin and chili powder. You can also try my Homemade Refried Beans.
- Salad: This Mexican Salad is full of Latin-style flavors, topped with cilantro lime dressing, and crispy tortilla strips. This Tomato Avocado Salad is another great option.
- Guacamole: Try this Simple Guacamole or your favorite storebought brand.
Storage Tips
Store leftover fish refrigerated for up to 2 days. To reheat, bake in a 300°F oven until warmed through, about 5 minutes, or heat in an air fryer.
The slaw keeps for about 1 day in the fridge, but it will release liquid as it sits. Drain well before serving. The sauces all last 5 to 7 days refrigerated in a sealed container.
I don’t recommend freezing any of these components. The fish loses its texture when frozen and thawed.
Dietary Notes
This fish tacos recipe is gluten-free and pescatarian.
Frequently Asked Questions
You’ll want properly seasoned fish with a good crust (not soggy), a bright acidic component like lime juice and slaw to cut through richness, and a creamy sauce that ties everything together. The contrast in textures of crispy, crunchy, creamy, and soft is what makes the best fish tacos.
Yes! Preheat your air fryer to 400°F, season the fish the same way with the spice rub, and cook for 8-10 minutes, flipping the filets halfway through. The air fryer actually creates an even crispier exterior than baking, which some people prefer. Just make sure not to overcrowd the basket so the hot air can circulate properly.
For crispy fish without deep frying, pan-searing is your best bet. Heat a cast iron skillet with 1-2 tablespoons of olive oil over medium-high heat until shimmering. Pat the fish very dry, season it, and cook for 3-4 minutes per side without moving it. If you want traditional beer-battered fish tacos, you’ll need to dip seasoned fish in a batter (flour, beer, baking powder), then fry in 350°F oil for 3-4 minutes until golden and crispy.
You can use either! I like how flour tortillas are softer and I find them easier to work with. Corn tortillas have a more authentic taste and a firmer texture that holds up to all the toppings.
Epic Fish Tacos
This fish tacos recipe is bright and flavorful, paired with a zesty seasoning, fresh slaw, and simple sauce! It’s perfect for an easy weeknight meal.
- Prep Time: 15 minutes
- Cook Time: 10 minutes
- Total Time: 25 minutes
- Yield: 3 to 4 (8 tacos)
- Category: Main Dish
- Method: Baked
- Cuisine: Mexican
- Diet: Gluten Free
Ingredients
For the fish
- 1 pound tilapia or cod* (wild caught preferable)
- 1 tablespoon chili powder
- 1 teaspoon each cumin and smoked paprika (or standard paprika)
- ½ teaspoon each garlic powder and onion powder
- 1 teaspoon kosher salt, for seasoning
For the tacos
- 3 cups shredded red cabbage (or a mix of red and green cabbage)
- 1 shredded or grated carrot (optional)
- 1 green onion
- 2 ½ tablespoons lime juice
- ¼ teaspoon each celery salt and kosher salt (or all kosher salt)
- Fish Taco Sauce (or Cilantro Lime Crema, Spicy Mayo, or Chipotle Sauce)
- 8 corn tortillas
- Chopped cilantro, for serving
- Lime wedges, for serving (optional)
Instructions
- Preheat the oven to 400 degrees Fahrenheit. Thaw the fish, if necessary.
- Make the fish: In a small bowl, mix together the dry rub: chili powder, cumin, smoked paprika, garlic powder, and onion powder. Pat the fish dry, then sprinkle it with 1 teaspoon kosher salt and pat it in. Add the seasoning and pat it to cover the fish. Place the fish on a parchment lined baking sheet. Bake for 10 minutes, until tender. Then broil for 2 minutes until the top is lightly browned.
- Make the slaw: Meanwhile, thinly slice the cabbage. Shred or grate the carrot (we used a handheld julienne peeler). Thinly slice the green onion. Place the cabbage, carrots and green onion in a bowl. Stir in the lime juice, salt and celery salt. Serve immediately with a slotted spoon. The slaw picks up moisture as it sits; if you plan to let it sit, make sure to serve with the slotted spoon to strain out the moisture.
- Make the sauce: Make the Fish Taco Sauce.
- Warm the tortillas: If desired, char the tortillas by placing them on an open gas flame on medium for a few seconds per side, flipping with tongs, until they are slightly blackened and warm. Or warm them according to How to Warm Tortillas.
- Assemble the tacos by topping the tortillas with fish, slaw, and sauce. Top with chopped cilantro and a spritz of lime.
Notes
*If you’re serving 4 hungry eaters, you may want to increase the fish to 1.5 pounds and up the spice quantities accordingly. The slaw and sauce should work for 12 tacos. Or, make sure to serve with a filling side dish like refried beans (purchased or homemade).
Storage notes: Store leftover fish refrigerated for up to 2 days. To reheat, bake in a 300°F oven until warmed through, about 5 minutes, or heat in an air fryer. The slaw keeps for about 1 day in the fridge, but it will release liquid as it sits. Drain well before serving. The sauces all last 5 to 7 days refrigerated in a sealed container.
(function(){
window.addEventListener( ‘message’, function( event ){
if ( ( ‘https://nutrifox.com’ !== event.origin && ‘https://nutrifox.test’ !== event.origin ) ||
typeof event.data !== ‘string’ ) {
return;
}
var payload = JSON.parse( event.data );
switch ( payload.event ) {
case ‘setHeight’:
var iframe = document.getElementById( ‘nutrifox-label-‘ + payload.recipeId );
iframe.style.height = payload.height + ‘px’;
break;
}
} );
}());
window.trCommon={“minRating”:6,”ajaxurl”:”https:\/\/www.acouplecooks.com\/wp-admin\/admin-ajax.php”,”ratingNonce”:””,”postId”:73460};
window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.smoothScroll = {
init() {
document.addEventListener( ‘click’, ( e ) => {
let anchor = e.target;
if ( anchor.tagName !== ‘A’ ) {
anchor = anchor.closest( ‘a.tasty-recipes-scrollto’ );
}
if ( ! anchor || ! anchor.classList.contains( ‘tasty-recipes-scrollto’ ) ) {
return;
}
const elementHref = anchor.getAttribute( ‘href’ );
if ( ! elementHref ) {
return;
}
e.preventDefault();
this.goToSelector( elementHref );
});
},
goToSelector( selector ) {
const element = document.querySelector( selector );
if ( ! element ) {
return;
}
element.scrollIntoView( { behavior: ‘smooth’ } );
}
};
document.addEventListener(
‘DOMContentLoaded’,
() => window.TastyRecipes.smoothScroll.init()
);
window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.cookMode = {
wakeLockApi: false,
wakeLock: false,
cookModeSelector: ‘.tasty-recipes-cook-mode’,
init() {
if (“wakeLock” in navigator && “request” in navigator.wakeLock) {
this.wakeLockApi = navigator.wakeLock;
}
const cookModes = document.querySelectorAll(this.cookModeSelector);
if (cookModes.length > 0) {
for (const cookMode of cookModes) {
if (this.wakeLockApi) {
cookMode.querySelector(‘input[type=”checkbox”]’).addEventListener(“change”, event => {
this.checkboxChange(event.target);
}, false);
} else {
cookMode.style.display = “none”;
}
}
}
},
checkboxChange(checkbox) {
if (checkbox.checked) {
this.lock();
} else {
this.unlock();
}
},
setCheckboxesState(state) {
const checkboxes = document.querySelectorAll(this.cookModeSelector + ‘ input[type=”checkbox”]’);
for (const checkbox of checkboxes) {
checkbox.checked = state;
}
},
async lock() {
try {
this.wakeLock = await this.wakeLockApi.request(“screen”);
this.wakeLock.addEventListener(“release”, () => {
this.wakeLock = false;
this.setCheckboxesState(false);
});
this.setCheckboxesState(true);
} catch (error) {
this.setCheckboxesState(false);
}
},
unlock() {
if (this.wakeLock) {
this.wakeLock.release();
this.wakeLock = false;
}
this.setCheckboxesState(false);
}
};
(function(callback) {
if (document.readyState !== “loading”) {
callback();
} else {
document.addEventListener(“DOMContentLoaded”, callback);
}
})(() => {
window.TastyRecipes.cookMode.init();
});
window.TastyRecipes = window.TastyRecipes || {};
window.TastyRecipes.staticTooltip = {
element: null,
tooltipElement: null,
deleting: false,
init( element ) {
if ( this.deleting ) {
return;
}
this.element = element;
this.buildElements();
},
destroy() {
if ( ! this.tooltipElement || this.deleting ) {
return;
}
this.deleting = true;
this.tooltipElement.classList.remove( ‘opened’ );
setTimeout( () => {
this.tooltipElement.remove();
this.deleting = false;
}, 500 );
},
buildElements() {
const tooltipElement = document.createElement( ‘div’ );
tooltipElement.classList.add( ‘tasty-recipes-static-tooltip’);
tooltipElement.setAttribute( ‘id’, ‘tasty-recipes-tooltip’ );
const currentTooltipElement = document.getElementById( ‘tasty-recipes-tooltip’ );
if ( currentTooltipElement ) {
document.body.replaceChild( tooltipElement, currentTooltipElement );
} else {
document.body.appendChild( tooltipElement );
}
this.tooltipElement = document.getElementById( ‘tasty-recipes-tooltip’ );
},
show() {
if ( ! this.tooltipElement ) {
return;
}
const tooltipTop = this.element.getBoundingClientRect().top
+ window.scrollY
– 10 // 10px offset.
– this.tooltipElement.getBoundingClientRect().height;
const tooltipLeft = this.element.getBoundingClientRect().left
– ( this.tooltipElement.getBoundingClientRect().width / 2 )
+ ( this.element.getBoundingClientRect().width / 2 ) – 1;
const posLeft = Math.max( 10, tooltipLeft );
this.maybeRemoveTail( posLeft !== tooltipLeft );
this.tooltipElement.setAttribute( ‘style’, ‘top:’ + tooltipTop + ‘px;left:’ + posLeft + ‘px;’ );
this.tooltipElement.classList.add( ‘opened’ );
},
maybeRemoveTail( removeTail ) {
if ( removeTail ) {
this.tooltipElement.classList.add( ‘tr-hide-tail’ );
} else {
this.tooltipElement.classList.remove( ‘tr-hide-tail’ );
}
},
changeMessage( message ) {
if ( ! this.tooltipElement ) {
return;
}
this.tooltipElement.innerHTML = message;
}
};
window.TastyRecipes.ajax = {
sendPostRequest( url, data, success, failure ) {
const xhr = new XMLHttpRequest();
xhr.open( ‘POST’, url, true );
xhr.send( this.preparePostData( data ) );
xhr.onreadystatechange = () => {
if ( 4 !== xhr.readyState ) {
return;
}
if ( xhr.status === 200 ) {
success( JSON.parse( xhr.responseText ) );
return;
}
failure( xhr );
};
xhr.onerror = () => {
failure( xhr );
};
},
preparePostData( data ) {
const formData = new FormData();
for ( const key in data ) {
formData.append( key, data[key] );
}
return formData;
},
};
window.TastyRecipes.ratings = {
defaultRating: 0,
currentRatingPercentage: 100,
savingRating: false,
init( minRating ) {
this.minRating = minRating;
this.formWatchRating();
this.closeTooltipWhenClickOutside();
this.addBodyClassBasedOnSelectedRating();
this.backwardCompFormRatingPosition();
},
formWatchRating() {
const ratings = document.querySelectorAll(‘.tasty-recipes-no-ratings-buttons [data-rating]’);
if ( ratings.length {
event.preventDefault();
this.defaultRating = event.target.closest( ‘.checked’ ).dataset.rating;
this.setCheckedStar( event.target );
this.maybeSendRating( this.defaultRating, event.target );
this.setRatingInForm( this.defaultRating );
} );
}
},
closeTooltipWhenClickOutside() {
window.addEventListener( ‘click’, e => {
// Bailout (don’t remove the tooltip) when the clicked element is a rating star, or it’s the tooltip itself.
if ( e.target.closest( ‘.tasty-recipes-rating’ ) || e.target.classList.contains( ‘tasty-recipes-static-tooltip’ ) ) {
return;
}
window.TastyRecipes.staticTooltip.destroy();
} );
},
setRatingInForm( rating ) {
const ratingInput = document.querySelector( ‘#respond .tasty-recipes-rating[value=”‘ + rating + ‘”]’ );
if ( ! ratingInput ) {
return;
}
ratingInput.click();
},
addBodyClassBasedOnSelectedRating() {
const ratingInputs = document.querySelectorAll( ‘input.tasty-recipes-rating’ );
if ( ! ratingInputs ) {
return;
}
for ( const ratingInput of ratingInputs ) {
ratingInput.addEventListener( ‘click’, currentEvent => {
const selectedRating = currentEvent.target.getAttribute( ‘value’ );
this.handleBodyClassByRating( selectedRating );
this.toggleCommentTextareaRequired( selectedRating );
} );
}
},
handleBodyClassByRating( rating ) {
if ( rating < this.minRating ) {
document.body.classList.remove( 'tasty-recipes-selected-minimum-rating' );
return;
}
document.body.classList.add( 'tasty-recipes-selected-minimum-rating' );
},
toggleCommentTextareaRequired( rating ) {
const commentTextarea = document.getElementById( 'comment' );
if ( ! commentTextarea ) {
return;
}
if ( rating {
window.TastyRecipes.staticTooltip.changeMessage( response.data.message );
window.TastyRecipes.staticTooltip.show();
this.updateAverageText( response.data, recipeCardElement );
this.maybeFillCommentForm( response.data );
// Hide the tooltip after 5 seconds.
setTimeout( () => {
this.maybeResetTooltip( recipeCardElement, response.data, rating );
}, 5000 );
},
() => {
this.resetTooltip( recipeCardElement );
}
);
},
updateAverageText( data, recipeCardElement ) {
if ( ! data.average ) {
return;
}
this.setRatingPercent( data );
if ( ! data.count ) {
return;
}
const quickLink = document.querySelector( ‘.tasty-recipes-rating-link’ );
if ( quickLink ) {
this.setTextInContainer( quickLink, data );
this.setPartialStar( quickLink );
}
const cardStars = recipeCardElement.querySelector( ‘.tasty-recipes-ratings-buttons’ );
cardStars.dataset.trDefaultRating = data.average;
this.setTextInContainer( recipeCardElement.querySelector( ‘.tasty-recipes-rating’ ), data );
},
setTextInContainer( container, data ) {
if ( ! container ) {
return;
}
if ( data.label ) {
const ratingLabelElement = container.querySelector( ‘.rating-label’ );
if ( ratingLabelElement ) {
ratingLabelElement.innerHTML = data.label;
}
return;
}
const averageElement = container.querySelector( ‘.average’ );
if ( averageElement ) {
averageElement.textContent = data.average;
}
const countElement = container.querySelector( ‘.count’ );
if ( countElement ) {
countElement.textContent = data.count;
}
},
setPartialStar( container ) {
const highestStar = container.querySelector( ‘[data-rating=”‘ + Math.ceil( this.defaultRating ) + ‘”]’ );
if ( highestStar ) {
highestStar.dataset.trClip = this.currentRatingPercentage;
}
},
setRatingPercent( data ) {
this.defaultRating = data.average.toFixed( 1 );
const parts = data.average.toFixed( 2 ).toString().split( ‘.’ );
this.currentRatingPercentage = parts[1] ? parts[1] : 100;
if ( this.currentRatingPercentage === ’00’ ) {
this.currentRatingPercentage = 100;
}
},
setCheckedStar( target ) {
const cardRatingContainer = target.closest( ‘.tasty-recipes-ratings-buttons’ );
const selectedRatingElement = cardRatingContainer.querySelector( ‘[data-tr-checked]’ );
if ( selectedRatingElement ) {
delete selectedRatingElement.dataset.trChecked;
}
const thisStar = target.closest( ‘.tasty-recipes-rating’ );
thisStar.dataset.trChecked = 1;
thisStar.querySelector( ‘[data-tr-clip]’ ).dataset.trClip = 100;
},
maybeFillCommentForm( data ) {
if ( ! data.comment || ! data.comment.content ) {
return;
}
const commentForm = document.querySelector( ‘#commentform’ );
if ( ! commentForm ) {
return;
}
const commentBox = commentForm.querySelector( ‘[name=comment]’ );
if ( ! commentBox || commentBox.value ) {
return;
}
// Add comment details for editing.
commentBox.innerHTML = data.comment.content;
if ( data.comment.name ) {
commentForm.querySelector( ‘[name=author]’ ).value = data.comment.name;
commentForm.querySelector( ‘[name=email]’ ).value = data.comment.email;
}
},
maybeResetTooltip( recipeCardElement, data, rating ) {
if ( this.savingRating === rating ) {
this.resetTooltip( recipeCardElement, data );
}
},
resetTooltip( recipeCardElement, data ) {
window.TastyRecipes.staticTooltip.destroy();
this.savingRating = false;
// Reset the default rating.
const cardRatingContainer = recipeCardElement.querySelector( ‘.tasty-recipes-ratings-buttons’ );
if ( cardRatingContainer ) {
this.defaultRating = ( data && data.average ) ? data.average.toFixed(1) : cardRatingContainer.dataset.trDefaultRating;
cardRatingContainer.dataset.trDefaultRating = this.defaultRating;
this.resetSelectedStar( cardRatingContainer, data );
}
},
resetSelectedStar( cardRatingContainer ) {
const selectedRatingElement = cardRatingContainer.querySelector( ‘[data-rating=”‘ + Math.ceil( this.defaultRating ) + ‘”]’ );
if ( selectedRatingElement ) {
selectedRatingElement.querySelector( ‘[data-tr-clip]’ ).dataset.trClip = this.currentRatingPercentage;
selectedRatingElement.parentNode.dataset.trChecked = 1;
}
const previousSelectedElement= cardRatingContainer.querySelector( ‘[data-tr-checked]’ );
if ( previousSelectedElement ) {
const currentSelectedRating = previousSelectedElement.querySelector(‘[data-rating]’);
if ( currentSelectedRating !== selectedRatingElement ) {
delete previousSelectedElement.dataset.trChecked;
}
}
},
backwardCompFormRatingPosition() {
const ratingsButtons = document.querySelector( ‘#respond .tasty-recipes-ratings-buttons, #tasty-recipes-comment-rating .tasty-recipes-ratings-buttons’ );
if ( ! ratingsButtons ) {
return;
}
const ratingsButtonsStyles = window.getComputedStyle(ratingsButtons);
if ( ! ratingsButtonsStyles.display.includes( ‘flex’ ) ) {
ratingsButtons.style.direction = ‘rtl’;
}
if ( typeof tastyRecipesRating !== ‘undefined’ ) {
// Select the rating that was previously selected in admin.
ratingsButtons.querySelector( ‘.tasty-recipes-rating[value=”‘ + tastyRecipesRating + ‘”]’ ).checked = true;
}
const ratingSpans = ratingsButtons.querySelectorAll( ‘.tasty-recipes-rating’ );
for (const ratingSpan of ratingSpans) {
ratingSpan.addEventListener( ‘click’, event => {
if ( ratingSpan === event.target ) {
return;
}
ratingSpan.previousElementSibling.click();
} );
}
}
};
(function(callback) {
if (document.readyState !== “loading”) {
callback();
} else {
window.addEventListener( ‘load’, callback );
}
})(() => {
window.TastyRecipes.ratings.init( window.trCommon ? window.trCommon.minRating : 4 );
});