Pockets of resistance to the Supreme Court's gay marriage ruling have popped up in several states, but appear unlikely to linger for long.

The court voted 5-4 to guarantee marriage for all same-sex couples. Before Friday's ruling, 13 states outlawed gay marriage.

States have largely agreed to comply with the ruling, albeit begrudgingly, but some localities have stood their ground.

The 13 states where gay marriage was illegal were Tennessee, Georgia, Louisiana, Texas, Mississippi, Georgia, Kentucky, Ohio, Arkansas, Missouri, Nebraska, South and North Dakota, according to the National Conference of State Legislatures.

In some states, certain counties have refused to provide marriage licenses. In Alabama, for instance, about seven out of 67 counties refused to issue licenses to same-sex couples.

A federal judge issued an order Wednesday calling for all counties to comply with the ruling. The order from Judge Callie Granade does not apply to three counties — Randolph, Colbert and Lauderdale — that stopped issuing marriage licenses to both straight and same-sex couples, according to the Associated Press.

Same-sex marriage advocates have asked any counties that don't comply to be held in contempt. That could lead to fines for every day of noncompliance.

"Violating a federal court injunction is a very serious matter and can result in serious penalties," Shannon Minter, legal director for the National Center for Lesbian Rights, told the Washington Examiner. "It would be surprising if any probate judges, after receiving [Wednesday's] ruling, would wish to go down that path."

Minter said that already three counties, including Tuscaloosa, have complied with the order. There are also reports of a few counties that have resumed issuing marriage licenses to all couples, he added.

Resistance in the state is nothing new. Earlier this year, Alabama Supreme Court Chief Justice Ray Moore ordered clerks to disobey a ruling from Granade overturning the state's ban. Granade put her decision on hold to await the Supreme Court's ruling.

Some counties in Texas also are resisting the ruling, especially after getting the green light from Attorney General Ken Paxton.

On Sunday, Paxton told court clerks and justices of the peace that they did not have to issue marriage licenses if it conflicted with their religious beliefs.

The attorney general said officials could get sued, but numerous lawyers are ready to "assist clerks defending their religious beliefs, in many cases on a pro-bono basis."

There are other instances of resistance in certain localities. A district judge in Michigan announced earlier this week he will stop performing all marriages, leading to a county clerk to step in, according to the website MLive.com.

Other holdouts have started to dissipate.

On Friday, Mississippi Attorney General Jim Hood said that the Fifth Circuit Court of Appeals must lift a stay on an earlier ruling that struck down the state's gay marriage ban before licenses could be issued.

But on Monday he allowed counties to move forward, with 47 out of 82 issuing licenses, according to the pro-gay marriage group Campaign for Southern Equality.

"We are very optimistic we will see all 82 counties issuing licenses as soon as the stay is lifted, and we are similarly optimistic that the stay will be lifted this week," the campaign told the Washington Examiner.

Louisiana Attorney General James "Buddy" Caldwell said on Friday that he found nothing in the Supreme Court's decision that makes the order effective immediately.

He added it is not yet a legal requirement for officials to issue licenses or perform marriages.

That sentiment appeared to be walked back over the weekend as governor and Republican presidential candidate Bobby Jindal said the state would comply in full with the ruling.

But not all localities have complied. The clerk of Red River Parish, a county that takes up the northern part of the state, has refused to issue licenses to same-sex couples due to religious objections.

Stuart Shaw said he believed his "office could accommodate all requests."

Orleans parish, which encompasses New Orleans, is another locality that hasn't issued licenses as it awaits the lifting of the stay from the Fifth Circuit, according to the website nola.com.