Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7081657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:56:53+00:00 2026-05-28T06:56:53+00:00

I recently started learning about Chrome Extensions and was taking a look at the

  • 0

I recently started learning about Chrome Extensions and was taking a look at the sample code to get a feel for how all the different parts fit together. I see that the logic behind the extensions are handled mostly in the background pages, but in looking at the following sample code I noticed something peculiar.

{
  "name": "Notification Demo",
  "version": "1",
  "description":
     "Shows off desktop notifications, which are \"toast\" windows that pop up on the desktop.",
  "icons": {"16": "16.png", "48": "48.png", "128": "128.png"},
  "permissions": ["tabs", "notifications"],
  "options_page": "options.html",
  "background": { "scripts": ["background.js"] },
  "content_security_policy": "script-src 'self'; img-src 'self'"
}

There’s no “background_page” here but instead a “background” element. I know there’s a setting in the “permissions” that allows chrome to run in the background even when it isn’t open but this appears to be something different. It seems like it’s possible to use a background script instead of a page but when I try to search for information about this I come up with nothing. Has anyone seen or used this before and can you give a brief description of what the advantage would be to using a background script over a background page?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:56:53+00:00Added an answer on May 28, 2026 at 6:56 am

    This is part of the security work that will not allow execution of inline JavaScript. Instead of having a background_page that only loads a background_script, use a separate file to allow loading the JS directly. Since background code has no UI, HTML really isn’t needed. This looks to be recent work and has not yet been documented.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently started learning about ASP.Net MVC and its various features MVC_3_MUSIC_STORE + CODE
Recently I've started learning about Contexts in .NET (context-bound, context-agile, message sinks, etc.). Several
I've recently started learning about .net and the Windows API and I'm currently writting
I've recently started learning C#. I just learned about properties and decided to make
Recently, I started learning some Java. From what I've already learned about JVM it
I have recently started learning Ruby, as my first programming language. I feel comfortable
Ok, so I've only recently started getting serious about learning how to program, and
I recently started learning ruby, and I understood that you coud use code blocks
I had recently started learning Python, and with all the research I decided it
I've started learning Rails3 / rspec recently, and I'm finding I'm spending about 80%

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.