Connect with us

SEO

6 JavaScript Optimization Tips From Google

Published

on

In a new video from Google, Developer Advocate Alan Kent shares six ways to optimize JavaScript to improve the performance of your website.

Kent identifies common performance problems caused by JavaScript and goes over steps you can take to fix them.

1. Avoid JavaScript File Proliferation

Avoid proliferation in the number of JavaScript files on your site.

The number of JavaScript files could become excessive if you’re not careful, especially if each UI component is in a separate file.

Reducing the number of JavaScript files a browser has to download can improve website performance.

How To Detect

The Opportunity section of the PageSpeed Insights report lists recommendations specific to your site.

Look for the recommendation to keep request counts low and transfer sizes small.

Click on the recommendation for a summary of the number and sizes of resource types requested including JavaScript files.

How To Fix

You can fix this problem in a number of different ways. One option Google recommends is to combine smaller files together to have a single, larger file to download.

Another fix is to support HTTP2 on your site, as it can improve performance without joining files.

2. Avoid Excessive DNS Lookups

Avoid an excessive number of DNS lookups for the reference JavaScript files, as this can slow down a user’s first visit to your site.

How To Detect

PageSpeed Insights can show you a list of domain names used in URLs in sections such as reduce JavaScript execution time.

The network tab in Chrome Developer Tools is another way to see all the domain names referenced.

How To Fix

To reduce the number of DNS lookups, Google suggests you consider hosting a copy of externally referenced JavaScript files on your own site.

3. Eliminate Inefficient JavaScript

Reduce or eliminate inefficient JavaScript, as it can slow down webpages and lead to poor user experiences.

How To Detect

Look for the following opportunities in Google’s PageSpeed Insights report:

  • Reduce JavaScript execution time: This reports scripts where a large amount of CPU time was spent parsing or executing JavaScript code.
  • Eliminate render blocking resources: This includes JavaScript that may be executed before the page can rendered, making the user wait longer to see any content.
  • Document.write: If misused this can cause significant performance issues on a page as it blocks other operations from occurring.
  • Does not use passive listeners: A passive listener is a hint to the browser that JavaScript code will not call a function that prevents scrolling, allowing the browser to scroll the page even while the JavaScript is still executing.

How To Fix

Eliminating inefficient JavaScript is larger topic that goes beyond the scope of Google’s video.

The solutions generally involve writing the JavaScript code differently. Techniques include profiling existing code, and writing your own scaled down versions of more powerful components.

4. Eliminate Unused JavaScript

Unused JavaScript is also inefficient, but Google says this problem is common enough to call it out on its own.

Reusing code across sites can lead to the inclusion of JavaScript that’s not needed.

JavaScript that is never called upon still needs to be downloaded and parsed by the web browser, which is a waste of resources.

How To Detect

Look for the following opportunities in Google’s PageSpeed Insights report:

  • Reduce unused JavaScript: This shows you JavaScript that was not executed as part of loading a page.
  • Avoid enormous network payloads: This identifies areas for improvement by calling out large library downloads.
  • Minimize main-thread work: Includes time spent parsing, compiling, and executing JavaScript.

How To Fix

Google recommends a technique called tree-shaking that can be used to identify JavaScript that is never called, which is safe to delete.

5. Compress JavaScript Files

Make sure your JavaScript files are compressed when downloaded. While the web browser has to spend more CPU time to decompress the file contents, Google says compression is an overall win.

How To Detect

The PageSpeed Insights report has a section highlighting JavaScript files that may benefit from being compressed.

Clicking Enable text compression will show you which files are recommended to be compressed.

How To Fix

Most web browsers or content management systems have built-in support to compress downloads if properly configured.

6. Set Appropriate Cache Durations For JavaScript Code

Check that your JavaScript files are returned with appropriate cache expiry time headers.

This helps browsers avoid the overhead of checking if JavaScript files in its cache are out of date, which improves performance.

How To Detect

In the Networking tab of Chrome Developer Tools you can check the HTTP response headers for JavaScript files that are downloaded. Look for headers such as Cache Control.

In PageSpeed Insights look for the opportunity titled Serve static assets with an efficient cache policy. Clicking on it will show you a list of resources, including JavaScript files, that may benefit from appropriately set cache headers.

How to Fix

A way to enhance the caching of commonly used JavaScript files is to reference files from a shared public location.

If a user visits sites that reuse the same JavaScript file, the browser can use the previously downloaded copy of the file, which will improve performance.

For more detail on any of the above recommendations for optimizing JavaScript, see Google’s full video below:


Featured Image: Visual Generation/Shutterstock

!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′;
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,’script’,
‘https://connect.facebook.net/en_US/fbevents.js’);

if( typeof sopp !== “undefined” && sopp === ‘yes’ ){
fbq(‘dataProcessingOptions’, [‘LDU’], 1, 1000);
}else{
fbq(‘dataProcessingOptions’, []);
}

fbq(‘init’, ‘1321385257908563’);

fbq(‘track’, ‘PageView’);

fbq(‘trackSingle’, ‘1321385257908563’, ‘ViewContent’, {
content_name: ‘6-javascript-optimization-tips-from-google’,
content_category: ‘news web-development’
});

Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address

SEO

4 Ways To Try The New Model From Mistral AI

Published

on

By

4 Ways To Try The New Model From Mistral AI

In a significant leap in large language model (LLM) development, Mistral AI announced the release of its newest model, Mixtral-8x7B.

What Is Mixtral-8x7B?

Mixtral-8x7B from Mistral AI is a Mixture of Experts (MoE) model designed to enhance how machines understand and generate text.

Imagine it as a team of specialized experts, each skilled in a different area, working together to handle various types of information and tasks.

A report published in June reportedly shed light on the intricacies of OpenAI’s GPT-4, highlighting that it employs a similar approach to MoE, utilizing 16 experts, each with around 111 billion parameters, and routes two experts per forward pass to optimize costs.

This approach allows the model to manage diverse and complex data efficiently, making it helpful in creating content, engaging in conversations, or translating languages.

Mixtral-8x7B Performance Metrics

Mistral AI’s new model, Mixtral-8x7B, represents a significant step forward from its previous model, Mistral-7B-v0.1.

It’s designed to understand better and create text, a key feature for anyone looking to use AI for writing or communication tasks.

This latest addition to the Mistral family promises to revolutionize the AI landscape with its enhanced performance metrics, as shared by OpenCompass.

Mixtral-8x7B: 4 Ways To Try The New Model From Mistral AI

What makes Mixtral-8x7B stand out is not just its improvement over Mistral AI’s previous version, but the way it measures up to models like Llama2-70B and Qwen-72B.

mixtral-8x7b performance metrics compared to llama 2 open source ai modelsmixtral-8x7b performance metrics compared to llama 2 open source ai models

It’s like having an assistant who can understand complex ideas and express them clearly.

One of the key strengths of the Mixtral-8x7B is its ability to handle specialized tasks.

For example, it performed exceptionally well in specific tests designed to evaluate AI models, indicating that it’s good at general text understanding and generation and excels in more niche areas.

This makes it a valuable tool for marketing professionals and SEO experts who need AI that can adapt to different content and technical requirements.

The Mixtral-8x7B’s ability to deal with complex math and coding problems also suggests it can be a helpful ally for those working in more technical aspects of SEO, where understanding and solving algorithmic challenges are crucial.

This new model could become a versatile and intelligent partner for a wide range of digital content and strategy needs.

How To Try Mixtral-8x7B: 4 Demos

You can experiment with Mistral AI’s new model, Mixtral-8x7B, to see how it responds to queries and how it performs compared to other open-source models and OpenAI’s GPT-4.

Please note that, like all generative AI content, platforms running this new model may produce inaccurate information or otherwise unintended results.

User feedback for new models like this one will help companies like Mistral AI improve future versions and models.

1. Perplexity Labs Playground

In Perplexity Labs, you can try Mixtral-8x7B along with Meta AI’s Llama 2, Mistral-7b, and Perplexity’s new online LLMs.

In this example, I ask about the model itself and notice that new instructions are added after the initial response to extend the generated content about my query.

mixtral-8x7b perplexity labs playgroundScreenshot from Perplexity, December 2023mixtral-8x7b perplexity labs playground

While the answer looks correct, it begins to repeat itself.

mixtral-8x7b errorsScreenshot from Perplexity Labs, December 2023mixtral-8x7b errors

The model did provide an over 600-word answer to the question, β€œWhat is SEO?”

Again, additional instructions appear as β€œheaders” to seemingly ensure a comprehensive answer.

what is seo by mixtral-8x7bScreenshot from Perplexity Labs, December 2023what is seo by mixtral-8x7b

2. Poe

Poe hosts bots for popular LLMs, including OpenAI’s GPT-4 and DALLΒ·E 3, Meta AI’s Llama 2 and Code Llama, Google’s PaLM 2, Anthropic’s Claude-instant and Claude 2, and StableDiffusionXL.

These bots cover a wide spectrum of capabilities, including text, image, and code generation.

The Mixtral-8x7B-Chat bot is operated by Fireworks AI.

poe bot for mixtral-8x7b firebaseScreenshot from Poe, December 2023poe bot for mixtral-8x7b firebase

It’s worth noting that the Fireworks page specifies it is an β€œunofficial implementation” that was fine-tuned for chat.

When asked what the best backlinks for SEO are, it provided a valid answer.

mixtral-8x7b poe best backlinks responseScreenshot from Poe, December 2023mixtral-8x7b poe best backlinks response

Compare this to the response offered by Google Bard.

Mixtral-8x7B: 4 Ways To Try The New Model From Mistral AIMixtral-8x7B: 4 Ways To Try The New Model From Mistral AI

Mixtral-8x7B: 4 Ways To Try The New Model From Mistral AIScreenshot from Google Bard, December 2023Mixtral-8x7B: 4 Ways To Try The New Model From Mistral AI

3. Vercel

Vercel offers a demo of Mixtral-8x7B that allows users to compare responses from popular Anthropic, Cohere, Meta AI, and OpenAI models.

vercel mixtral-8x7b demo compare gpt-4Screenshot from Vercel, December 2023vercel mixtral-8x7b demo compare gpt-4

It offers an interesting perspective on how each model interprets and responds to user questions.

mixtral-8x7b vs cohere on best resources for learning seoScreenshot from Vercel, December 2023mixtral-8x7b vs cohere on best resources for learning seo

Like many LLMs, it does occasionally hallucinate.

mixtral-8x7b hallucinationsScreenshot from Vercel, December 2023mixtral-8x7b hallucinations

4. Replicate

The mixtral-8x7b-32 demo on Replicate is based on this source code. It is also noted in the README that β€œInference is quite inefficient.”

Mixtral-8x7B: 4 Ways To Try The New Model From Mistral AIScreenshot from Replicate, December 2023Mixtral-8x7B: 4 Ways To Try The New Model From Mistral AI

In the example above, Mixtral-8x7B describes itself as a game.

Conclusion

Mistral AI’s latest release sets a new benchmark in the AI field, offering enhanced performance and versatility. But like many LLMs, it can provide inaccurate and unexpected answers.

As AI continues to evolve, models like the Mixtral-8x7B could become integral in shaping advanced AI tools for marketing and business.


Featured image: T. Schneider/Shutterstock



Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
Continue Reading

SEO

OpenAI Investigates ‘Lazy’ GPT-4 Complaints On Google Reviews, X

Published

on

By

OpenAI Investigates 'Lazy' GPT-4 Complaints On Google Reviews, X

OpenAI, the company that launched ChatGPT a little over a year ago, has recently taken to social media to address concerns regarding the β€œlazy” performance of GPT-4 on social media and Google Reviews.

Screenshot from X, December 2023OpenAI Investigates ‘Lazy’ GPT-4 Complaints On Google Reviews, X

This move comes after growing user feedback online, which even includes a one-star review on the company’s Google Reviews.

OpenAI Gives Insight Into Training Chat Models, Performance Evaluations, And A/B Testing

OpenAI, through its @ChatGPTapp Twitter account, detailed the complexities involved in training chat models.

chatgpt openai a/b testingScreenshot from X, December 2023chatgpt openai a/b testing

The organization highlighted that the process is not a β€œclean industrial process” and that variations in training runs can lead to noticeable differences in the AI’s personality, creative style, and political bias.

Thorough AI model testing includes offline evaluation metrics and online A/B tests. The final decision to release a new model is based on a data-driven approach to improve the β€œreal” user experience.

OpenAI’s Google Review Score Affected By GPT-4 Performance, Billing Issues

This explanation comes after weeks of user feedback about GPT-4 becoming worse on social media networks like X.

Complaints also appeared in OpenAI’s community forums.

openai community forums gpt-4 user feedbackScreenshot from OpenAI, December 2023openai community forums gpt-4 user feedback

The experience led one user to leave a one-star rating for OpenAI via Google Reviews. Other complaints regarded accounts, billing, and the artificial nature of AI.

openai google reviews star rating Screenshot from Google Reviews, December 2023openai google reviews star rating

A recent user on Product Hunt gave OpenAI a rating that also appears to be related to GPT-4 worsening.

openai reviewsScreenshot from Product Hunt, December 2023openai reviews

GPT-4 isn’t the only issue that local reviewers complain about. On Yelp, OpenAI has a one-star rating for ChatGPT 3.5 performance.

The complaint:

yelp openai chatgpt reviewScreenshot from Yelp, December 2023yelp openai chatgpt review

In related OpenAI news, the review with the most likes aligns with recent rumors about a volatile workplace, alleging that OpenAI is a β€œCutthroat environment. Not friendly. Toxic workers.”

google review for openai toxic workersScreenshot from Google Reviews, December 2023google review for openai toxic workers

The reviews voted the most helpful on Glassdoor about OpenAI suggested that employee frustration and product development issues stem from the company’s shift in focus on profits.

openai employee review on glassdooropenai employee review on glassdoor

openai employee reviewsScreenshots from Glassdoor, December 2023openai employee reviews

This incident provides a unique outlook on how customer and employee experiences can impact any business through local reviews and business ratings platforms.

openai inc google business profile local serps google reviewsScreenshot from Google, December 2023openai inc google business profile local serps google reviews

Google SGE Highlights Positive Google Reviews

In addition to occasional complaints, Google reviewers acknowledged the revolutionary impact of OpenAI’s technology on various fields.

The most positive review mentions about the company appear in Google SGE (Search Generative Experience).

Google SGE response on OpenAIScreenshot from Google SGE, December 2023Google SGE response on OpenAI

Conclusion

OpenAI’s recent insights into training chat models and response to public feedback about GPT-4 performance illustrate AI technology’s dynamic and evolving nature and its impact on those who depend on the AI platform.

Especially the people who just received an invitation to join ChatGPT Plus after being waitlisted while OpenAI paused new subscriptions and upgrades. Or those developing GPTs for the upcoming GPT Store launch.

As AI advances, professionals in these fields must remain agile, informed, and responsive to technological developments and the public’s reception of these advancements.


Featured image: Tada Images/Shutterstock



Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
Continue Reading

SEO

ChatGPT Plus Upgrades Paused; Waitlisted Users Receive Invites

Published

on

By

ChatGPT Plus Upgrades Paused; Waitlisted Users Receive Invites

ChatGPT Plus subscriptions and upgrades remain paused after a surge in demand for new features created outages.

Some users who signed up for the waitlist have received invites to join ChatGPT Plus.

Screenshot from Gmail, December 2023ChatGPT Plus Upgrades Paused; Waitlisted Users Receive Invites

This has resulted in a few shares of the link that is accessible for everyone. For now.

RELATED: GPT Store Set To Launch In 2024 After β€˜Unexpected’ Delays

In addition to the invites, signs that more people are getting access to GPTs include an introductory screen popping up on free ChatGPT accounts.

ChatGPT Plus Upgrades Paused; Waitlisted Users Receive InvitesScreenshot from ChatGPT, December 2023ChatGPT Plus Upgrades Paused; Waitlisted Users Receive Invites

Unfortunately, they still aren’t accessible without a Plus subscription.

chatgpt plus subscriptions upgrades paused waitlistScreenshot from ChatGPT, December 2023chatgpt plus subscriptions upgrades paused waitlist

You can sign up for the waitlist by clicking on the option to upgrade in the left sidebar of ChatGPT on a desktop browser.

ChatGPT Plus Upgrades Paused; Waitlisted Users Receive InvitesScreenshot from ChatGPT, December 2023ChatGPT Plus Upgrades Paused; Waitlisted Users Receive Invites

OpenAI also suggests ChatGPT Enterprise for those who need more capabilities, as outlined in the pricing plans below.

ChatGPT Plus Upgrades Paused; Waitlisted Users Receive InvitesScreenshot from OpenAI, December 2023ChatGPT Plus Upgrades Paused; Waitlisted Users Receive Invites

Why Are ChatGPT Plus Subscriptions Paused?

According to a post on X by OpenAI’s CEO Sam Altman, the recent surge in usage following the DevDay developers conference has led to capacity challenges, resulting in the decision to pause ChatGPT Plus signups.

The decision to pause new ChatGPT signups follows a week where OpenAI services – including ChatGPT and the API – experienced a series of outages related to high-demand and DDoS attacks.

Demand for ChatGPT Plus resulted in eBay listings supposedly offering one or more months of the premium subscription.

When Will ChatGPT Plus Subscriptions Resume?

So far, we don’t have any official word on when ChatGPT Plus subscriptions will resume. We know the GPT Store is set to open early next year after recent boardroom drama led to β€œunexpected delays.”

Therefore, we hope that OpenAI will onboard waitlisted users in time to try out all of the GPTs created by OpenAI and community builders.

What Are GPTs?

GPTs allow users to create one or more personalized ChatGPT experiences based on a specific set of instructions, knowledge files, and actions.

Search marketers with ChatGPT Plus can try GPTs for helpful content assessment and learning SEO.

There are also GPTs for analyzing Google Search Console data.

And GPTs that will let you chat with analytics data from 20 platforms, including Google Ads, GA4, and Facebook.

Google search has indexed hundreds of public GPTs. According to an alleged list of GPT statistics in a GitHub repository, DALL-E, the top GPT from OpenAI, has received 5,620,981 visits since its launch last month. Included in the top 20 GPTs is Canva, with 291,349 views.

Β 

Weighing The Benefits Of The Pause

Ideally, this means that developers working on building GPTs and using the API should encounter fewer issues (like being unable to save GPT drafts).

But it could also mean a temporary decrease in new users of GPTs since they are only available to Plus subscribers – including the ones I tested for learning about ranking factors and gaining insights on E-E-A-T from Google’s Search Quality Rater Guidelines.

custom gpts for seoScreenshot from ChatGPT, November 2023custom gpts for seo

Featured image: Robert Way/Shutterstock



Source link

Keep an eye on what we are doing
Be the first to get latest updates and exclusive content straight to your email inbox.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
Continue Reading

Trending