Yahoo swung to a loss in the second quarter, but revenues grew as the Internet pioneer refocused its efforts on mobile and other growing sectors. The $22 million loss in Tuesday's earnings report compared with a profit of $270 million in the same period a year ago. But chief executive Marissa Mayer said she was pleased with the revenue growth, saying, "Yahoo's transformation continues to make great progress." Total revenues jumped nearly 15 percent to $1.24 billion, led by what Mayer has dubbed the new emerging areas for Yahoo of "Mavens," or mobile, video, native advertising and social. "Our Mavens investment businesses across mobile, video, native and social grew to nearly $400 million in revenue this quarter, delivering 60 percent ... growth year-over-year," she said in a statement. For overall revenues, it was the best top-line growth in nearly nine years, Mayer said. Yahoo has been struggling in recent years since losing its lead in Internet search to Google, and has been aiming for new niches under Mayer's leadership.